Im starting to develop a count viewers online system and Im having a issue. I usually use time(NOW()) to get time but now its giving me this error:
Fatal error: Call to undefined function NOW()
Do you have any ideia why this is happening?
$id_session= $_SESSION['startView']['session'];
if($_SESSION['startView']['time_end'] <= time())
{
$delete = $pdo->prepare("DELETE FROM viewers_online WHERE session=? OR time_end <= ? ");
$delete->bindValue(1,$id_session);
$delete->bindValue(2,time(NOW()));
unset($_SESSION['startView']);
}