MeryJey
Новичок
Всем привет, помогите решить проблему.
Выдаёт следующие:
PHP:
include('settings/mysqlconnect.php');
if(isset ($_POST['submit']))
{
$title = $_POST['Title'];
$editor1 = $_POST['editor1'];
$editor2 = $_POST['editor2'];
$author = $_POST['Author'];
$date = $_POST['Date'];
$materialName = $_GET['materialName'];
$id = $_GET['edit'];
if(mysql_query("UPDATE newsBlock SET
Title='$title'
Author='$author'
Date='$date'
WHERE id=1"))
{
echo "Успешно!";
}
else
{
echo "Ошибка!:".mysql_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 'Author='Admin' Date='2011-05-20' WHERE id=1' at line 3