View Single Post
Old 02-27-2013, 12:16 AM   PM User | #7
Arcticwarrio
Regular Coder

 
Arcticwarrio's Avatar
 
Join Date: May 2012
Location: UK
Posts: 597
Thanks: 15
Thanked 67 Times in 67 Posts
Arcticwarrio is on a distinguished road
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.
Arcticwarrio is offline   Reply With Quote