ciao a tutti io faccio sta query qui:
$num_commenti="SELECT COUNT(*) FROM commenti where foto=$immagine";
$conta_commenti=mysql_query($num_commenti,$link);
$totale=mysql_fetch_array($conta_commenti);
echo $totale[0];
e mi ritorna come errore:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /web/htdocs.....