Codice PHP:

$sql 
"SELECT COUNT(*) FROM answer_answer WHERE id_ask ='$id'";
            
$num_risposte mysql_query($sql);

echo
"$num_risposte"