I want to UPDATE a table called "imagen", the values from the column "orden", but I'm making something worng:
mysql_query("UPDATE imagen SET orden IN(".$losVal.") WHERE PicNum LIMIT 1")
this is the output 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 'IN 9,1 WHERE PicNum LIMIT 1' at line 1
Someone knows how can I fix the query?
Alvaro