syntax mytsql
Posté : 09 sept. 2011, 11:31
Bonjour,
j'ai une erreur de syntaxe mais je ne vois pas laquelle ,
Merci
j'ai une erreur de syntaxe mais je ne vois pas laquelle ,
SELECT * FROM profmusique WHERE codePostalProf LIKE '".$departement."%'
AND (instrumentPrincipalProf='".$_POST['instrumentRechercher']."'
OR discipline1Prof='".$_POST['instrumentRechercher']."'
OR discipline2Prof='".$_POST['instrumentRechercher']."'
OR discipline3Prof='".$_POST['instrumentRechercher']."'
OR discipline4Prof='".$_POST['instrumentRechercher']."')
AND mailProf NOT LIKE ('%mailEnAttente')
ORDER BY villeProf ASC
le message d'erreur de phpmyadmin
Code : Tout sélectionner
#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 'instrumentRechercher']."' OR discipline1Prof='".$_POST['instrumentRechercher'' at line 2