1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<table'><tr>
<th>Quantités</th>
<th>Produits</th>
<th>Prix Unitaire</th>
<th>Prix Total</th>
</tr>
<?php
mysql_connect("$host", "$sqllogin", "$sqlpassword")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$login=$_SESSION['login'];
$requete = mysql_query("SELECT * FROM $tbl_name WHERE ident = '$login'");
while ($donnees = mysql_fetch_array($requete))
{
?>
<tr>
<td><strong><?php echo $donnees['quant']; ?></strong></td>
<td><strong><?php echo $donnees['produit']; ?></strong></td>
<td><strong><?php echo $donnees['prix']; ?> €</strong></td>
<td><strong><?php echo $donnees['prix_total']; ?> €</strong></td>
</tr>
</table> |
Partager