maxvee8
03-16-2008, 07:46 PM
hi i want this statement to be IF ?? AND ?? do wht ever looka the the code and make it right lol.. cant get it workin
if ($_POST['submit'] == 'Submit Crime' && $yearRecorded=='2008'){
$queryaddcrime=mysql_query("INSERT INTO markers (name,address,lat,lng,type,yearRecorded) VALUES ('$name','$address','$lat','$lng','$type','$yearRecorded')");
//same thing as above, but will last for 3600 seconds, or one hour from the current time.
mysql_query ($queryaddcrime);
}
Max
if ($_POST['submit'] == 'Submit Crime' && $yearRecorded=='2008'){
$queryaddcrime=mysql_query("INSERT INTO markers (name,address,lat,lng,type,yearRecorded) VALUES ('$name','$address','$lat','$lng','$type','$yearRecorded')");
//same thing as above, but will last for 3600 seconds, or one hour from the current time.
mysql_query ($queryaddcrime);
}
Max