Bonjour,
J'ai creé une page catalogue qui consisite à afficher la liste des articles, on cliquant sur le titre, une autre page Fiche sera afficher qui contient toutes les infos de ce produit!
le problème c'est rien ne s'affiche!
Je vous donne mon code:
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49 <html><head></head><?php require_once('connexion.php'); mysql_select_db('boutiquemx_db'); $req =" select * from articles"; $resultat = mysql_query($req); $reponse= mysql_fetch_assoc($resultat); ?> <body><form id="form1" name="form1" method="get" action="Fiche.php"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"><table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td><div align="center" class="Style1"><a href="catalogue.php">CATALOGUE</a> | <a href="pannier.php">PANIER</a> |<a href="Administrateur.php"> ADMINISTRATEUR </a></div></td> </tr> </table></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td height="27" bgcolor="#000066"><div align="center" class="Style6">Titre</div></td> <td bgcolor="#000066"><div align="center" class="Style6">Auteur</div></td> <td bgcolor="#000066"><div align="center" class="Style6">Prix</div></td> </tr> <? do { ?> <tr> <td height="34"><a href="Fiche.php?$ref=<? echo $reponse['reference'];?>"><? echo $reponse['titre'];?></a> </td> <td><? echo $reponse['auteur']; ?> </td> <td><? echo $reponse['prix']; ?> </td> </tr> <tr> <td height="4" colspan="3"> </td> </tr> <? } while ($reponse= mysql_fetch_assoc($resultat));?> </table></form> </body> </html> <? mysql_close();?>
Partager