bonjour,
Je me retrouve face à un problème que je solutionne pas, voilà ma requete est:
et il me répond:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 $sql = 'UPDATE images SET droits_img = :droits_img, description_img = :description_img, WHERE nom_img = :nom_img'; $req = $bdd->prepare($sql); $req->bindParam(':droits_img', $droits_img, PDO::PARAM_INT); $req->bindParam(':description_img', $description_img, PDO::PARAM_INT); $req->bindParam(':nom_img', $nom_img, PDO::PARAM_INT); $req->execute();
Syntax error or access violation: 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 'WHERE nom_img = '2.jpg''
je ne vois pas où est le problème.
Merci par avance pour votre aide!![]()
Partager