@talo said:
si va bene ma non è questo che cercavo
volevo sapere se c'è e qual'è un comando per prendere le righe della tabella una a volta e non per campi
Grazie per la precedente risposta
talo
Fai come dice stellina25, infatti estrae riga per riga tutti i campi da te selezionati
Infatti se modifichi il codice di stellina in questo modo
[php]
$i = 1;
$result= mysql_query("SELECT * FROM sondaggio", $db_connect);
while ($row= mysql_fetch_array($result)) {
echo "Riga ".$i." :".$row['nome_campo1'].", ".$row['nome_campo2']."<br />";
$i++
}
[/php]
Vedrai che ti stamperà a video tutte le righe selezionate dal DB