boucle infinie
Posté : 02 mai 2013, 08:49
Quelqu'un sait pourquoi j'ai une boucle infinie avec ce code ? Quand je teste la requête sur PhpMyAdmin je n'ai pas de boucle infinie
$query="SELECT id,nom_user,nb_co FROM jm_users ";
$req=mysql_query($query);
$row=mysql_fetch_row($req);
echo "<table>
<tr>
<th>ID utilisateur</th>
<th>Nom utilisateur</th>
<th>Nombre connexion</th>
</tr>";
while (isset($row)) {
echo "<tr>
<th>$row[0]</th>
<th>$row[1]</th>
<th>$row[2]</th>
</tr>";
}
echo "</table>";