Page 1 of 1

MySQL Query not doing anything?

Posted: Sun Feb 18, 2007 2:32 pm
by adamb10

Code: Select all

$settings = mysql_query("SELECT * FROM settings WHERE id=1") or die(mysql_error());
$setting = mysql_fetch_array($result);
That line of code I think is wrong. I'm not sure if it's retrieving anything from the database at all as when I use the data retrieved, it doesnt show.

Anyting wrong here?

Thanks!!

Posted: Sun Feb 18, 2007 3:09 pm
by Mordred
should be $result = mysql_query(...

Posted: Sun Feb 18, 2007 3:13 pm
by adamb10
How could I not see that? :p

Thanks