svenn Posted January 7, 2011 Share Posted January 7, 2011 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++ Link to comment https://forums.phpfreaks.com/topic/223680-php-notice-a-non-well-formed-numeric-value-encountered/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.