PHP Code:
$result = query("SELECT * FROM table WHERE gamecode = ".$_POST['gamecode']);
if (mysql_num_rows($result) == 0){ //submit form INSERT // etc
}
__________________
There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
|