Error en LIMIT sql
shadow
-
Ashtar -
Ashtar -
Bonjour,
j'ai fai la requete suivante pour modifier un champ pricie dans ma base de donnée la requet est
mysql_query("UPDATE info i,client c,tonte t set i.Poid_net='$date'
where c.idclient=t.idclient and i.idclient=c.idclient and c.idclient='$client' and t.num_fabrication='$num' ORDER BY 'idinfo' DESC LIMIT 0, 1 ")
dans l'affichage j'ai un error ;
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 ' 1' at line 2
je ferai quoi pour resoudre ce probleme
j'ai fai la requete suivante pour modifier un champ pricie dans ma base de donnée la requet est
mysql_query("UPDATE info i,client c,tonte t set i.Poid_net='$date'
where c.idclient=t.idclient and i.idclient=c.idclient and c.idclient='$client' and t.num_fabrication='$num' ORDER BY 'idinfo' DESC LIMIT 0, 1 ")
dans l'affichage j'ai un error ;
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 ' 1' at line 2
je ferai quoi pour resoudre ce probleme