Bonjour , j'ai cette partie de mon code :
Pour pouvoir afficher mon tableau sur ma page il faudrait que tout ce script soit écrit sur la meme ligne , sinon dans mon document.getElementById il me trouve un "\n".
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 $valeur='<table>'; while ($row=mysql_fetch_array($result)) { $valeur.='<tr> <td style="background-color:orange;">'.$row["port_switch"].'</td> <td>media</td><td><input type="edit"></td><td>infra</td> <td><input type="edit"></td><td>Port channel</td> <td><input type="edit"></td> <td>Vlan</td><td><input type="edit"></td> <td><input type="button" value="Enregistrer"></td></tr>'; } $valeur.='</table>'; echo "document.getElementById('plus_information".$_GET['position']."').innerHTML=".$valeur." ";
Il y a t'il une solution pour pouvoir parser ma valeur $valeur afin qu'il soit bien interpreter ?
Merci Beaucoup.
Partager