lilwing Posted July 18, 2008 Share Posted July 18, 2008 Not sure what I typed wrong here. Maybe I am having dillusions from being up too late. <?php $contentedit = $_POST['contentedit']; $title = $_POST['title']; $content = $_POST['FCKeditor1']; $finalcontent = str_replace("'", "´", $content); $table = $_POST['table']; $link = $_POST['link']; mysql_query("UPDATE ".$table." SET Content = '".$finalcontent."' WHERE ".$link."='home'") or die(mysql_error()); header('location:http://www.[neah].org/auth/admin.php'); ?> Link to comment https://forums.phpfreaks.com/topic/115487-mysql-syntax-error/ Share on other sites More sharing options...
Skittalz Posted July 18, 2008 Share Posted July 18, 2008 Whats the error message? Steve Link to comment https://forums.phpfreaks.com/topic/115487-mysql-syntax-error/#findComment-593701 Share on other sites More sharing options...
lilwing Posted July 18, 2008 Author Share Posted July 18, 2008 oops sorry 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 Content = 'Hello my name is admin. ' WHERE ='home'' at line 1 Link to comment https://forums.phpfreaks.com/topic/115487-mysql-syntax-error/#findComment-593702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.