Bonjours,
Je suis héberger par free avec un MYSQL j'ai une table du type :
et j'ai comme code php :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 id_pti int(11) nom varchar(50) description varchar(4096) chemin varchar(50) type varchar(20) auteur varchar(50) download int(11) Option varchar(20) note float nb_note int(255)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 $id=$_POST['id']; $nom_fichier=$_POST['nom']; $description=$_POST['description']; $typee=$_POST['type']; $option=$_POST['option']; mysql_query("UPDATE pti SET nom=$nom_fichier, description=$description, type=$typee, option=$option WHERE id_pti=$id ")or die("ERREUR DE MODIFICATION"."<br/>".mysql_error());
Problème il me sort cette erreur :
ps: la collone OPTION n'est pas en majuscule dans ma bdd elle est écrite Option
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 ERREUR DE MODIFICATION 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 'option=ARLE WHERE id_pti=86' at line 2
Partager