Insert into $_session
Résolu/Fermé
techinfo46
Messages postés
383
Date d'inscription
jeudi 23 décembre 2010
Statut
Membre
Dernière intervention
20 avril 2020
-
28 oct. 2011 à 17:53
techinfo46 Messages postés 383 Date d'inscription jeudi 23 décembre 2010 Statut Membre Dernière intervention 20 avril 2020 - 31 oct. 2011 à 12:01
techinfo46 Messages postés 383 Date d'inscription jeudi 23 décembre 2010 Statut Membre Dernière intervention 20 avril 2020 - 31 oct. 2011 à 12:01
A voir également:
- Insert into $_session
- Touche insert - Guide
- Disk boot failure insert system disk and press enter - Guide
- Insert boot media in selected boot device and press a key ✓ - Forum Windows 10
- Monitor will go into standby mode ✓ - Forum Matériel & Système
- Touche insert sur clavier portable hp ✓ - Forum Clavier
2 réponses
Bonsoir
Régle d'écriture des chaînes en PHP :
Quand tu utilises une variable tableau dans une chaîne entre double quotes, il NE FAUT PAS mettre les simples quotes autour de l'indice
Autrement dit :
Dans le doute, tu peux toujours créer ta chaîne par concaténation, tu n'as plus besoin de te rappeler cette règle bizarre
Régle d'écriture des chaînes en PHP :
Quand tu utilises une variable tableau dans une chaîne entre double quotes, il NE FAUT PAS mettre les simples quotes autour de l'indice
Autrement dit :
$req_bailleur="INSERT INTO bailleur (NOMBAILLEUR_1, PRENOMBAILLEUR_1, ADRESSEBAILLEUR_1, TELBAILLEUR_1, FAXBAILLEUR_1, VILLEBAILLEUR_1, CODEPOSTALBAILLEUR_1, MAILBAILLEUR_1) VALUES('$_SESSION[BAILLEURPHYSIQUE][$i][nombailleur]', '$_SESSION[BAILLEURPHYSIQUE][$i][prenombailleur]', '$_SESSION[BAILLEURPHYSIQUE][$i][adressebailleur]', '$_SESSION[BAILLEURPHYSIQUE][$i][telbailleur]', '$_SESSION[BAILLEURPHYSIQUE][$i][faxbailleur]', '$_SESSION[BAILLEURPHYSIQUE][$i][villebailleur]', '$_SESSION[BAILLEURPHYSIQUE][$i][codepostalbailleur]', '$_SESSION[BAILLEURPHYSIQUE][$i][mailbailleur']' )";
Dans le doute, tu peux toujours créer ta chaîne par concaténation, tu n'as plus besoin de te rappeler cette règle bizarre
techinfo46
Messages postés
383
Date d'inscription
jeudi 23 décembre 2010
Statut
Membre
Dernière intervention
20 avril 2020
56
31 oct. 2011 à 12:01
31 oct. 2011 à 12:01
merci sa fonctionne