quand je l’exécute sous wamp, une page blanche s'affiche alors qu'il y a les donnes dans la base de données.
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88 <html> <head> <meta charset="utf-8"> </head> <?php include("connection.php"); try { $bdd =connectMaBase(); } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } $reponses = $bdd->prepare('SELECT * FROM facture ORDER BY Date_facture ASC'); while ($donnees_factures = $reponses->fetch()) { $id_facture=$donnees_factures['Id_facture']; $id_fournisseur=$donnees_factures['Id_fournisseur']; $reponses_fournisseur = $bdd->prepare('SELECT * FROM fournisseurs Id_fournisseur='.$id_fournisseur.''); while ($donnees_fournisseur = $reponses_fournisseur->fetch()) { $nom_fournisseur=$donnees_fournisseur['Nom_fournisseur']; $tel_fournisseur=$donnees_fournisseur['Tel_fournisseur']; } ?> <body> <header> <h1>Presentation d'une facture</h1> </header> <nav> </nav> <section> <aside> </aside> <article> <div> Num facture : <?php echo $donnees_factures['Num_facture'];?> Date facture : <?php echo $donnees_factures['Date_facture'];?> Fournisseur : <?php echo $nom_fournisseur;?> Telephonne fournisseur : <?php echo $tel_fournisseur;?> </div> <table align="center" id="idtabaert"> <caption>Les articles</caption> <?php $reponses_articles = $bdd->prepare('SELECT * FROM facture_article where Id_facture='.$id_facture.''); while ($donnees_articles = $reponses_articles->fetch()) { $id_article=$donnees_articles ['Id_article']; $detail_articles = $bdd->prepare('SELECT * FROM articles where Id_article='.$id_article.''); while ($donnees_details = $detail_articles->fetch()) { $designation=$donnees_details['Designation']; $quantite=$donnees_details['Quantite']; $PU=$donnees_details['Prix_unitaire']; $PTotal=$donnees_details[' Prix_total']; } ?> <tr> <td><?php echo $designation ?></td> <td><?php echo $quantite ?></td> <td><?php echo $PU ?></td> <td><?php echo $PTotal ?></td> </tr> <?php }?> </table> <?php }?> </article> </section> <footer> </footer> </body> </html>
quel est le problème a votre niveau ?
Partager