Bonjour,

je voudrai modifier un script pour y ajouter mes variables de lecture de la basse de données MySql dans le tableau, je n'y arrive pas.

code original
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
$comments = array (
	"A"	=>	array( 1 => "Receiver Outlet",
				   2 => "LED Living Room",
				   3 => "Ceiling Fan Light Living Room",
				   4 => "Ceiling Fan Light Living Room",
				   5 => "Ceiling Fan Light Living Room",
				   6 => "Ceiling Fan Light Living Room",
				   7 => "Ceiling Fan Light Living Room",
				   8 => "Ceiling Fan Light Living Room",
				   9 => "Ceiling Fan Light Living Room",
				   10 => "Ceiling Fan Light Living Room",
				   11 => "Ceiling Fan Light Living Room",
				   12 => "Ceiling Fan Light Living Room",
				   13 => "Ceiling Fan Light Living Room",
				   14 => "Ceiling Fan Light Living Room",
				   15 => "Ceiling Fan Light Living Room",
				   16 => "Ceiling Fan Light Living Room",
				 ),
	"D"	=>	array( 1 => " ",
				    2 => "Chaudiere",
				    9 => "Lumière chambre des invités",
				 ),
	"E"	=>	array( 1 => "Lumière bureau",
				    2 => "néon bureau"
				  )
);
Code modifier
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
$comments = array (
	"A"	=>	array( 1 => "echo $donnees["nom_module"]",
				   2 => "echo $donnees["nom_module"]"
 
				  )
);
Merci.