par
michel71 » 22 oct. 2013, 16:11
Bonjour,
Quelqu'un peut il m'aider à résoudre ce problème
$index='N° '.$_POST['num_timbre'];
// lecture de la table
$sql= 'DELETE FROM '.$_SESSION['chemin_collec'].' WHERE yvert='.$index;
$req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
Voici l'erreur
N° 999999Erreur SQL !
DELETE FROM timbresdefrance_collections.mich WHERE yvert=N° 999999
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 '° 999999' at line 1
La table comporte bien la colonne "yvert" avec le texte "N° 999999"
Merci