Bonsoir ;
Svp, j'ai une page php qui intègre une image faite avec artichow.
Je veux faire de sorte que cette page php, permet de préciser des parametres à passer au graphique qui proviennent de 2 combo box dynamiques :
svp, comment je peux passer les paramètres au graphique.
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 <form action="index.php" method="post"> Groupe : <?php $link = mysql_connect("localhost", "xxxx", "xxxxx"); mysql_select_db("XXXX", $link); $result = mysql_query("SELECT groupe from evolution", $link); $num_rows = mysql_num_rows($result); echo'<select name="groupe">'; $res=mysql_query("select DISTINCT Groupe as GroupeNom from evolution"); if(mysql_num_rows($res)==0) echo "there is no data in table.."; else for($i=0;$i<mysql_num_rows($res);$i++) { $row=mysql_fetch_assoc($res); echo"<option value='$row[GroupeNom]'>$row[GroupeNom]</option>"; } echo'</select>'; ?> Article : <?php echo'<select name="article">'; $res=mysql_query("select DISTINCT article as articleNom from evolution"); if(mysql_num_rows($res)==0) echo "there is no data in table.."; else for($i=0;$i<mysql_num_rows($res);$i++) { $row=mysql_fetch_assoc($res); echo"<option value='$row[articleNom]'>$row[articleNom]</option>"; } echo'</select>'; ?> <input name="send" type="submit" value="visualiser" /> <br /><br /> </form> <img src="graph2.php" border=0 />
Merci d'avance pour toute aide
Partager