this is part of a script that i use for a game. THis part lets you only play it once a day
elseif ($row[time] < $date)
{
echo "You just killed an orc, wait tell one comes back";
}
Now it is always saying, "You just killed an orc, wait tell one comes back" even though there is nothing in the database. I get $row[time] from the database and $date is
$time = time();
$date = date('y-m-d 00:00:00',$time);
What is wrong with it?