include "connect.php"; $tm = strtotime( "September 4, 2009 11:59PM" ); if( $tm < time() && !$stay ) { Header( "Location: ended.html" ); exit; } $max = mysql_fetch_array( mysql_query( "select id from maxentries" ) ); $max = $max[id]; $curr = mysql_fetch_array( mysql_query( "select count(*) as id from entries" ) ); $curr = $curr[id]; if( $curr >