bonjour
je suis débutant en php .je crée une interface qui est une page web avec le php
la figure suivant represente mon travail
http://www.developpez.net/forums/att...1&d=1366747676
maintenant je veux affiche une table de mon base dans l'interface
mon code est le suivant
pouvez vous m'aidez car c'est tres urgent pour mon PFE et 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
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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Acceuil</title> <link href="wal.css" rel="stylesheet" type="text/css"/> <link href="css/styles.css" rel="stylesheet" /> <style type="text/css"> <!-- .Style5 { font-size: 16; color: #333333; font-weight: bold; } .Style6 { color: #3333FF; font-weight: bold; } --> </style> <?php require_once('db_config.php'); ?> </head> <body topmargin="0" leftmargin="0" bgcolor="#99CCFF"> <table> <tr><td></td> <right><td align="right" background=images/capture.png width=150 height=22><font color=#666666 face=verdana size=1><center><b><a href="index.php?erreur=logout">Deconnexion</a></center></font></b></td> </tr> </table> <p>statistique par appelant</p> <p> <table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass" style="display: none;"> <tr><td id="ds_calclass"> </td></tr> </table> <?php include("calender.php"); ?> <form action="mobilepop.php" method="get"> <div> date debut : <input type="text" onClick="ds_sh(this);" name="date1" style="cursor: text" /> date fin : <input type="text" onClick="ds_sh(this);" name="date2" r style="cursor: text" /><input type="submit" value="Envoyer" /> </div> </form> <select name="trie"> <option>Cercle Pie</option> <option>Histogramme</option> <option>Courbe</option> </select> </p> <br /> <?php if(isset($_GET['date1'])) { $datedebut=$_GET['date1']; $datefin=$_GET['date2']; } else { $datedebut=''; $datefin=''; } $requette="SELECT * FROM stat_tt WHERE date_appel BETWEEN '".$datedebut."' AND '".$datefin."' GROUP BY date_appel"; $restt=mysql_query($requette); while($ligne=mysql_fetch_row($restt)) { ?> "<set label='+ <?php echo $ligne[1];?> +' value= '" + <?php echo $ligne[0]; ?> + "'/>" + <?php } // while ?> <?php //} ?> </body> </html>
Partager