Forum Moderators: open
In other words, the error should be above that line.
Something like:
$rs = mysql_query(...);
mysql_fetch_array($rs); it should be something like:
if(($rs = mysql_query(...))) mysql_fetch_array($rs); PS: I don't know if those are exactly the name of the functions... because I usually use an abstraction rather than the php built-in functions (eg. ADOdb).
It's most likely a problem with your query. Add the following to get some more information about the error:
$result = mysql_query($query) [b]or [url=http://www.php.net/die]die[/url]([url=http://www.php.net/mysql-error]mysql_error[/url]());[/b]