I am trying to bring my old website back to life and I found that my code is pretty outdated. I have updated a lot so far without much headache, but I can't seem to get past this error. (Its been a while since I've written any PHP.)
Error:
PHP Notice: A non well formed numeric value encountered
Code:
if(strtotime('-1 day', date('Y-m-d')) == $lastVisit) {
$consecutive = $consecutive + 1;
$mysqli->query("UPDATE login SET log_in_time=NOW(),consecutive='".$mysqli->real_escape_string($consecutive)."' WHERE name='".$mysqli->real_escape_string($name)."'");
}
It seems to be the very first line but can't seem to figure it out.