I've been creating this webapp and for some weird reason I cant get this part to work. What I'm trying to do is check for a match on the username and startdate. If there is a match then that user has already submitted his/her timesheet.
Thanks in advance
Alex
Code:
$check = mysql_query("SELECT * FROM timesheets WHERE username = '$username' AND startdate='$start_date'");
if($check != 0)
{
die("<p>Sorry, that timesheet has been submitted.</p>");
}
Alex
Comment