Ciao a tutti,
Io ho un problema con questo codice:
http://www.dudecompany.it/wailingwall/facebookwall.php
In poche parole quando inserisco un commento mi da questo errore:
codice:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /web/htdocs/www.dudecompany.it/home/wailingwall/update_ajax.php on line 14
Le riga 14 e le righe vicino sono queste:
{
$id=time();//Demo Use
$msg=$_POST['content'];
$sql=mysql_query("insert into messages(message)values('$msg')");
$result=mysql_query("select * from messages order by msg_id desc");
$row=mysql_fetch_array($result);
$id=$row['msg_id'];
$msg=$row['message'];
$msg=toLink($msg);
}
Che mi consigliate di fare?