si grazie ora funziona...
senza che apro un'altro post dato che mi si presenta un'altro errore:
Codice PHP:
// c_id = ID COMMENTO
// n_id = ID NEWS
// c_nid = ID NEWS PRESENTE NELLA TABELLA "COMMENTI" PER COLLEGARli
$qqq = mysql_query("SELECT ns.*, COUNT(c_nid) AS num FROM news AS ns, commenti WHERE ns.n_id = commenti.c_nid ORDER BY n_id DESC LIMIT 0, ".$conf['num_news'])
or die(mysql_error());
while ($ns = $qqq){
$news = mysql_fetch_array($ns);
echo '<p class="item_top">'.$news['n_title'].'</p>';
echo $news['n_text'];
echo '<div align="right">Leggi Commenti ('.$news['num'].')</div>';
}
errore
Codice PHP:
Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Ovviamente se tolgo il COUNT non stampa proprio nulla