le 16/07/2014 à 11:33
SearcherLite
j'execute cette requete
$res=$db->query("INSERT INTO materiel
(IDENTIFIANT,DESIGNATION,PARTNUMBER,NSN,SERIALNUMBER,POSITION,DISPO,DATEDEMISE,DESCRIPTION)
VALUES(1,'Groupe de démarrage',12333,8888,77,'meknes','dispo','28/07/1991','hhhhh ggggg lllll')");
if(!$res){
die('There was an error running the query [' . $db->error . ']');
}
else echo 'succes';
mais elle m'affiche un erreur
There was an error running the query [Champ 'IDENTIFIANT' inconnu dans field list]
$res=$db->query("INSERT INTO materiel
(IDENTIFIANT,DESIGNATION,PARTNUMBER,NSN,SERIALNUMBER,POSITION,DISPO,DATEDEMISE,DESCRIPTION)
VALUES(1,'Groupe de démarrage',12333,8888,77,'meknes','dispo','28/07/1991','hhhhh ggggg lllll')");
if(!$res){
die('There was an error running the query [' . $db->error . ']');
}
else echo 'succes';
mais elle m'affiche un erreur
There was an error running the query [Champ 'IDENTIFIANT' inconnu dans field list]