i want all fields that got a certain value to be changed to a different value.
but my code gave me an error
UPDATE maps
SET city_id = $new_id
WHERE city_id = $old_id
you cant write it like that?
I get this error code:
Couldn't execute query: 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 '' at line 3