You have an error in your SQL syntax
Aider moi à corriger cette requette SQL intégrée dans un code PHP
Code:
1 2 3 4 5 6
|
$Qnotes = "SELECT * FROM $bordereau WHERE matricule = '$matricule'";
$Notes = mysql_query($Qnotes) or die (mysql_error());
echo $bordereau; //PROF76660314BR3IF1
echo $Qnotes; //SELECT * FROM PROF76660314BR3IF1 WHERE matricule = '123457' |
Bien que la table PROF76660314BR3IF1 existe déjà, ce message d'erreur s'affiche :
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 'PROF76660314BR3' at line 1
:oops:
et merci infinément