SQL problem O.o

Associate
Joined
4 Mar 2007
Posts
315
Location
United Kingdom
I have just gone brain dead, anyone can tell me what is wrong with this code lol.
I dunno but I am overlooking such a stupidly simple thing, coding for several hours straight doesn't help haha.

PHP:
if(mysql_query("SELECT * FROM `calculation` WHERE username='Hobgoblin'")){
echo "duplicate detected";
}
 
You really need to read up on how to use mysql_query...

it's not the fact that I don't know, it's the fact that I can't think as i've been coding for quite some time and need to finish this part asap lol.

doesn't help that I made an abstraction layer too which my guess is it's falling under that region.
 
Back
Top Bottom