salut, j'ai cree un site sur lequel j'ai un pannier mais bon il marche pas.
quand j'ouvre le panier il m'ouvre la page avec le tablo ne contenant que la premiere ligne.
pkoi?
voici mon code:
merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35<center> <? if (! isset($_SESSION['panier']) ) { $_SESSION['panier'] = array(); } $produit = $_GET['noprod']; $lib = $_GET['liprod']; $pu=$_GET['pu']; echo "<H2>Votre panier</H2><TABLE BORDER=\"1\"><TR><TH>Produit</TH><th>Libelle</th><TH>Quantité</TH><th>Prix unitaire</th><th>Total</th></TR>"; for ($i=0; $i<count($_SESSION['panier']); $i++) { ?> <tr> <td><? echo($produit); ?> </td> <td><? echo($lib); ?> </td> <td><input type='integer' name='nom' size='3' value='1'> </td> <td><? echo($pu); ?> </td> <td> </td> </tr> <? } echo '</TABLE><a href="index.php?env=1" style="color:red">valider votre commande</a><br>'; echo '<a href="index.php?eff=1" style="color:red">effacer le pannier</a><br>'; echo '<a href="index.php" style="color:red">retour</a>'; ?> </center>







Répondre avec citation
Partager