Bonjour,
je suis sur un affichage de donnée a partire de ma bdd et quand je la test rien ne s'affiche comme je début dans les affichages j'ai un peu de pein j'ai suivie le tuto ainsi que le code que ma donnée jreaux62 j'ai remplacé avec ma bdd mais rien ne s'affiche je ne comprend pas ou est l'erreur mais j'aimerai bien que quelqu'un puisse m'aidé a la trouvé merci.
cette affichage est mon affichage test qui ne marche pas alors j'imagine pas lorsque je ferai mon vrai affichage breff j'èspère que vous pourrez m'aider a voir clair .
Merci
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70 <?php include("includes/application_top.php");?> <html> <head> </head> <body> <b>AVANT :</b><br /> <table border="1"> <tr style="text-align: center; background-color:#FFAD5B; font-weight:bold;"> <th>ID</th> <th>GENRE</th> <th>CHOSE/Produits</th> </tr> <?php $query = "SELECT * FROM type_prix"; $result = mysql_query($query) ; while ($row = mysql_fetch_array($result)) { ?> <tr> <td style="background-color:#CCCCCC;"><?php echo $row['type_prix_id'] ?></td> <td style="text-align:center;"><?php echo $row['type_prix_name'] ?></td> <td style="text-align:center;"><?php echo $row['type_prix_order'] ?></td> </tr> <?php } ?> </table> <br /> <b>APRES :</b><br /> <table border="1"> <tr style="text-align: center; background-color:#FFAD5B; font-weight:bold;"> <th>ID</th> <th>GENRE</th> <th>CHOSE/Produits</th> </tr> <?php $query = "SELECT * FROM type_prix GROUP BY type_prix_name"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { ?> <tr> <td style="background-color:#CCCCCC;"><?php echo $row['type_prix_name'] ?></td> <td style="text-align:center;"><?php echo $row['type_prix_order'] ?></td> <td> <table border="1"> <tr> <?php $query_produit = "SELECT * FROM MATABLE WHERE LeChamp1='".$row['LeChamp1']."'"; $result_produit = mysql_query($query_produit) ; while ($row_produit = mysql_fetch_array($result_produit)) { echo '<td style="width:100px;">'.$row_produit['type_prix_order'].'</td>'; } ?> </tr> </table> </td> </tr> <?php } ?> </table> </body> </html>
Partager