Hello,
That is the code and I get
What could be the problem?
Thanks,
PHP:
$getorder = "SELECT * FROM form_fields WHERE fid='".$fid."'";
$go = $db->fetch($db->query($getorder));
$neworder = $go['order']-1;
$update_query = "UPDATE form_fields SET order='".$neworder."' WHERE fid='".$fid."'";
$data = $db->query($update_query);
print '<p>Field has been successfully moved.</p><br />';
That is the code and I get
Code:
UPDATE form_fields SET order='9' WHERE fid='270'
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 'order='9' WHERE fid='270'' at line 1
What could be the problem?
Thanks,




