PDA

View Full Version : Stupid MySQL



Kaliber
February 1st, 2003, 04:06
I get this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mutateu/public_html/host/getfield.php on line 31

It works fine as

SELECT * FROM tablebut when I make it
SELECT * FROM table WHERE val='val'it screws up!

Anyone help me?

And yes I have checked here (http://www.php.net/manual/en/function.mysql-fetch-array.php)

hohoho
February 1st, 2003, 04:17
it shows this warning when the query returned 0 rows...
are you sure you have a row where val = val ?

Kaliber
February 1st, 2003, 04:23
Thanks, you have made me see the light :P

An error in my mysql syntax