bonjour ,
alors j'ai un big problème je veux afficher mes données dans une table mais quand je fais ça il y'a juste une donnée qui s'affiche SVP AIDEZ moi c'est grave unregent.......
voila mon code php:
$rs = odbc_exec($conn, $sql);
if (!$rs) {
exit("probleme dans la requete SQL");
}
?>
<table border-collapse="collaps" border="1px solid black" >
<tr>
<td><h1>Code Client</td>
<td><h1>Nom</td>
<td><h1>Adresse</td>
<td><h1>Adresse2</td>
<td><h1>Code postal</td>
<td><h1>ville</td>
</tr>
<?php
while (odbc_fetch_row($rs)) {
$No_ = odbc_result($rs, "No_");
$name = odbc_result($rs, "Name");
$Address = odbc_result($rs, "Address");
$Address2 = odbc_result($rs, "Address 2");
$PostCode = odbc_result($rs, "Post Code");
$City = odbc_result($rs, "City");
}
?>
<tr>
<td><?php echo"$No_"; ?></td>
<td><?php echo"$name"; ?></td>
<td><?php echo"$Address"; ?></td>
<td><?php echo"$Address2"; ?></td>
<td><?php echo"$PostCode"; ?></td>
<td><?php echo"$City"; ?></td>
</tr>
<br>
</table>
<?php
odbc_close($conn);
?>
alors j'ai un big problème je veux afficher mes données dans une table mais quand je fais ça il y'a juste une donnée qui s'affiche SVP AIDEZ moi c'est grave unregent.......
voila mon code php:
$rs = odbc_exec($conn, $sql);
if (!$rs) {
exit("probleme dans la requete SQL");
}
?>
<table border-collapse="collaps" border="1px solid black" >
<tr>
<td><h1>Code Client</td>
<td><h1>Nom</td>
<td><h1>Adresse</td>
<td><h1>Adresse2</td>
<td><h1>Code postal</td>
<td><h1>ville</td>
</tr>
<?php
while (odbc_fetch_row($rs)) {
$No_ = odbc_result($rs, "No_");
$name = odbc_result($rs, "Name");
$Address = odbc_result($rs, "Address");
$Address2 = odbc_result($rs, "Address 2");
$PostCode = odbc_result($rs, "Post Code");
$City = odbc_result($rs, "City");
}
?>
<tr>
<td><?php echo"$No_"; ?></td>
<td><?php echo"$name"; ?></td>
<td><?php echo"$Address"; ?></td>
<td><?php echo"$Address2"; ?></td>
<td><?php echo"$PostCode"; ?></td>
<td><?php echo"$City"; ?></td>
</tr>
<br>
</table>
<?php
odbc_close($conn);
?>