voici mon code
Ensuite je transmets le tableau via un lien vers une autre page comme ceci
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 $reponse_techni = $bdd_MCHNMFT->query('SELECT lmt.technicien_id,nom_techicien FROM lignetravaux_materiels_techniciens lmt,techniciens tc where lmt.technicien_id=tc.technicien_id and lmt.bontravaux_id='. $bontravaux_id); $array_intervenants=array(); if ($donnees_tech = $reponse_techni->fetch(PDO::FETCH_ASSOC)) { do{ $array_intervenants['technicien_id']= $donnees_tech['technicien_id']; $array_intervenants['nom_techicien']= $donnees_tech['nom_techicien'] ; } while($donnees_tech = $reponse_techni->fetch(PDO::FETCH_ASSOC)); $reponse_techni->closeCursor(); } else { $array_intervenants['technicien_id']= ""; $array_intervenants['nom_techicien']= ""; $array_intervenant= implode("|",$array_intervenants);
Et dans modifier_Un_Bontravaux.php, quand je fais un GET puis explode(), quand je mets
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 <a href="modifier_Un_Bontravaux.php?bontravaux_id='.$bontravaux_id.'&tableau_intervenant='.$array_intervenant class="lien_en_forme_de_bouton">MODIFIER</a>
l me signale l'erreur Undefined index: technicien_id
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 $tableau_intervenant['technicien_id']
Je ne sais plus quoi faire ?
Si vous avez la solution
Partager