Hello,
The code below is supposed to redirect the user to the index file if the user ($uid) has submitted an entry in the last hour. It's not working.
Any idea why not?
Thanks in advance,
John
$queryuidcount = "select loginid from submission where datesubmitted > (NOW() - INTERVAL 1 hours) AND loginid = '$uid'";
$uidresult = mysql_query($queryuidcount);
if (mysql_num_rows($uidresult) >= 1)
{
session_write_close();
header("Location:http://www.domain.com/sample/index.php");
exit;
}