Salut,
$requete = 'SELECT champ1, champ2, champ3, champ4 FROM table';
$envoie = mysql_query($requete) or die(mysql_error());
echo 'Il y a : '.mysql_num_rows($envoie).' résultats...';
while($tableau = mysql_fetch_array($envoie)){
echo '<tr><td>'.$tableau['champ1'].'</td><td>'.$tableau['champ2'].'</td><td>'.$tableau['champ3'].'</td><td>'.$tableau['champ4'].'</td></tr>';
}
ce code est un peu plus corect....
mais ici tu n'as pas de problèmes de boucles infinies...
In a dream, I saw me, drop dead... U was there, U cried... It was just a dream, if I die, U won't cry, maybe, U'll be happy
Mon site (articles sur la programmation et programmes)