bonjour,
j'ai crée un code en php qui m'affiche le nom du client et sa ville sous forme d'un tableau, et mon probleme c'est que le tableau ne m'affiche pas le premier enregistrement de ma bdd, il commence à partir du 2eme enregitrement; vous trouvez ci dessous mon code:
merci d'avance pour votre aide!!!
Modifié par nounou85 (23 May 2011 - 19:51)
j'ai crée un code en php qui m'affiche le nom du client et sa ville sous forme d'un tableau, et mon probleme c'est que le tableau ne m'affiche pas le premier enregistrement de ma bdd, il commence à partir du 2eme enregitrement; vous trouvez ci dessous mon code:
mysql_select_db($database_connexion, $connexion);
$query_nom_signin = "SELECT login, nom, prenom, zone FROM shop_client";
$nom_signin = mysql_query($query_nom_signin, $connexion) or die(mysql_error());
$row_nom_signin = mysql_fetch_assoc($nom_signin);
$totalRows_nom_signin = mysql_num_rows($nom_signin);
<table width="570">
<tr>
<td width="163" class="Style152"><strong>Ville</strong></td>
<td width="576" class="Style152"><strong>Nom</strong></td>
</tr>
<?php
while ($row_nom_signin = mysql_fetch_assoc($nom_signin))
{
?>
<tr>
<td class="Style17"><a href="articlemodif_signin.php?login=<?php echo $row_nom_signin['login']; ?>" class="Style15"><?php echo $row_nom_signin['zone']; ?></a></td> <td class="Style17"><strong><?php echo $row_nom_signin['nom']; ?> <?php echo $row_nom_signin['prenom']; ?></strong></td>
</tr>
<?php
}
?>
</table>
merci d'avance pour votre aide!!!
Modifié par nounou85 (23 May 2011 - 19:51)