|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||
|
Invité régulier
![]() Inscription : décembre 2008 Messages : 109 ![]() |
Bonjour j'aimerai savoir si la syntaxe de ma requête est correcte car je fait face à l'erreur suivante lorsque je l’exécute :
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1' in C:\wamp\www\....\acceuil.php on line 242 PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 in C:\wamp\www\...\acceuil.php on line 242 Code :
|
||
|
|
01
|
|
|
#2 | ||
|
Membre confirmé
![]() Inscription : juillet 2011 Messages : 146 ![]() |
Code :
Ensuite si tu fait du PDO il est quand même conseillé d'utiliser des paramètres et les binds pour assurer le contenu des data passée a tes fonctions. |
||
|
10
|
Copyright © 2000-2012 - www.developpez.com