<?php
// Если нажали кнопку "Сохранить"
if (isset($_POST['save'])) {
$title = $_POST['title'];
$description = $_POST['description'];
$description1 = $_POST['description1'];
$keywords = $_POST['keywords'];
$price = $_POST['price'];
$cost = $_POST['cost'];
$quantity = $_POST['quantity'];
$cnc = $_POST['cnc'];
$text = $_POST['text'];
$category = intval($_POST['category']);
$images = $_POST['image'];
$query = "UPDATE products SET title = $title, description = $description, description1 = $description1, keywords = $keywords,
price = $price, cost = $cost, quantity = $quantity, cnc = $cnc, `text` = $text, category = $category WHERE id = $id";
$result = mysql_query($query) or die(mysql_error());
}
?>
Когда выкладываю этот код - возникает вот такая ошибка MySQL:
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 'ПОСТЕЛЬНОГО БЕЛЬЯ № 01, description = Материал: бяз' at line 1
В чем проблема?