4 Einträge, 1 Seite |
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 '' at line 6
1
2
3
4
5
6
7
8
9
10
11
elseif ($status == "Send") {
$query = "INSERT INTO forum_content SET
date = now(),
headline = '".addslashes($headline)."',
article = '".addslashes($article)."',
category = '".addslashes($category)."',
author = '".addslashes($author)."',
";
$sql = mysql_query($query) or die(mysql_error());
unset($status, $headline, $article, $category);
}
1
2
3
4
5
6
7
8
<?
$host = "x.y.de";
$user = "12345";
$pw = "abcde"; -> müsste Zeile 6 sein
$database = "db12345";
$dz = mysql_connect($host, $user, $pw);
mysql_select_db($database, $dz);
?>
Quote...
category = '".addslashes($category)."',
author = '".addslashes($author)."'; ---> hier muss ein Semikolon stehen
";
$sql = mysql_query($query) or die(mysql_error());
unset($status, $headline, $article, $category);
}
4 Einträge, 1 Seite |