Hi i am getting the following error in a php program i am using
PHP Warning: A non-numeric value encountered in xxxxxxx db_connect.php on line 60
// find age
if(! function_exists('Age') )
{
function Age($birthdate)
{
return date("Y") - substr(trim($birthdate),-4,4); //// THIS IS THE LINE FOR THE SAID ERROR
}
}
if anyone could give advice or solution on this many thanks x