Hi,
My errorlog keep spamming the following errormsg:
“PHP Notice: A non well formed numeric value encountered on line 365”.
This is the code it refers to:
for ($yr = $year, $age = -1; mktime(0, 0, 0, $month, $day, (int)$yr) < $today; $yr++, $age++);
It’s supposed to calculate the owner of the page’s age. The full code is:
list($year,$month,$day) = explode("-", $birthday);
$tempVar=list($year,$month,$day) = explode("-", $birthday);
$today = time();
for ($yr = $year, $age = -1; mktime(0, 0, 0, $month, $day, (int)$yr) < $today; $yr++, $age++);