codice:
for ($i=0; $i<=50000; $i++)
{
 $id = rand (1,1000);
 //SELEZIONO TUTTE I MESSAGGI 
 $messaggi = "SELECT * FROM messaggi WHERE id = '$id'";
 $query_messaggi = mysql_query ($messaggi,$connessione) 
 or die ("Non riesco ad eseguire la richiesta $messaggi".mysql_error ()); 
 while ($valori_messaggi = mysql_fetch_array ($query_messaggi))
 {  
  $messaggio = $valori_messaggi ['testo'];
  $id_poster_db = $valori_messaggi ['id_poster'];
 }
}
Può essere attendibile come test?