Ho una serie di dati nel mio database, ho dei post con i relativi commenti degli altri, quando voglio stampare i post tramite $var tutto ok, li stampa tutti come dovrebbe, invece i commenti me ne stampa solo uno, non saprei come posizionare i due cicli while....
Come posiziono i due cicli while affinchè mi si vengano stampati tutti i commenti? ($quote)

Codice PHP:
$sql "SELECT * FROM stato ORDER BY IDS DESC";
$query mysql_query($sql);
$nrw mysql_num_rows($query);

$sql2 "SELECT * FROM commento ORDER BY IDC ASC";
$query2 mysql_query($sql2);
$nrw2 mysql_num_rows($query2);

while (
$nrw2 mysql_fetch_assoc($query2)) {
            
    
$quote $nrw2['TESTO'];
                            
    while (
$nrw mysql_fetch_assoc($query)) {
                        
        
$text $nrw['TESTO'];

                
$var $text $quote ";
                echo 
$var;
        }