I have an issue with syntax in a query
This works
$db->execute_query("UPDATE table SET order=2,active_status=3 WHERE id=? AND uid=?",array($id,$uid));
But this does not. It's because of the array
$db->execute_query("UPDATE table SET order=?,active_status=3 WHERE id=? AND uid=?",array($shoid,$id,$uid));
I also tried something like
$db->execute_query("UPDATE table (`order`) WHERE id=? AND uid=? VALUES (?)",array($id,$uid,$shoid));
But this is not working either.
The error I get is this
Query failed : UPDATE orsil_quote (`order`) WHERE id='38' AND uid='115' VALUES ('49')
The problem is '49' if i can remove ' from 49 in the query. this will work like this , im sure
$db->execute_query("UPDATE table SET order=?,active_status=3 WHERE id=? AND uid=?",array($shoid,$id,$uid));