so i have an update query, and i keep getting an error, i am not sure how to solve the problem. please post if you have a suggestion. the error: 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 'SET pagecontent = ' [div][h]Reynold J. Minnerath test[/h] ' at line 2 Code (markup): the query: $sql = "UPDATE $table SET pagecontent = '" .bb2html($_POST['T']). "' WHERE id = " .$_POST['id2']; Code (markup):
Try this: $sql = "UPDATE `$table` SET pagecontent = '" .bb2html($_POST['T']). "' WHERE id = " .$_POST['id2']; Code (markup):