ho questo errore:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/fantauser/public_html/home/index.php on line 409
io di solito non uso questa modalità per aprire una connessione al database, ma non capisco perchè mi da questo errore.
Codice PHP:
$query="select author, subject, message, dateline, fid from xmb_threads where fid <>99 and fid <>100 and fid <>101 and fid <>102 order by dateline desc limit 0,5";
$risultato=mysql_query($query);
echo("<table bgcolor=FFFFFF border=0 class=text bordercolor=white><tr>");
//while ($row = mysql_fetch_array($risultato)) {
while(list($author, $subject, $message, $dateline)=mysql_fetch_row($risultato)) {
/*$author = $row['author'];
$subject = $row['subject'];
$message = $row['message'];*/
print("<td valign=top><u><div align=justify>$author</u>
[b]$subject[/b]
$message</div></td></tr><tr>");
}
echo("</tr></table>");