Jump to content

Mysql syntax error?


lilwing

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.