PHP/MySQL Error please help?

Firzen

New member
Im getting the following error and have tried to debug this script for AGES :/ Yes, the curly brackets and stuff are included at the end of the script - I have looked for every error possible :s please help:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in charinfo.php on line 5



<!-- Begin Character Info Section -->
<?
$sql3='SELECT * FROM characters WHERE accid=$qls->user_info["id"]';
$result3=mysql_query($sql);
while($rows3=mysql_fetch_array($result3)){
?>

Line 5 is while($rows3=mysql_fetch_array($result3)){ - but the problem could be anywhere in the script. Could someone please tell me what the bug is? :)
grrr, not showing my code correctly.

Line 5 is while($rows3=mysql_fetch_array
($result3)){
without the enter.
Oh, and I am using a logon script, that is the $qls->user_info["id"]; bit.
 
Back
Top