I wanna avoid a duplicate reservation that has the same Date and Spot. How would I go about doing this if possible. I wanna make sure no two customers can make a reservation for the same Spot on the same Day.
// Insert data into mysql
$sql="INSERT INTO $tbl_name(Confirmation, Fname, Lname, Gname, License, Floor, Spot )
VALUES('$confirm_code', '$fname', '$lname', '$gname', '$license', '$floor', '$spot')";
$result=mysql_query($sql);
if (mysql_errno() == 1062)