I fetch some values from a database and display them on some textfields. When I change one specific value and try to store it back to the database, it's done properly. But when I try to do the same with any other value from any other textfield, I get the error "syntax error at or near where". Any thoughts?
'UPDATE table1 SET "intcolumn"='. $value .', "stringcolumn"=\''. $value2.'\''.' WHERE "column2"='.$value3);
Update on intcolumn is done properly. On stringcolumn I get the error, even if I update only stringcolumn
echoing the query will make the error easy to spot. Also, you are open to SQL injections