Уважаемые программисты, помогите!
Возник очень глупый вопрос
<?php
include("includes/db.inc");// id_page p_name meta_desc mata_key p_title p_content
$nid=$HTTP_POST_VARS['content_id'];
$title=$HTTP_POST_VARS['title'];
$meta_desc= $HTTP_POST_VARS['meta_desc'];
$meta_key = $HTTP_POST_VARS['meta_key'];
$content = $HTTP_POST_VARS['content'];
// UP
//$sql='UPDATE site_pages SET p_title="'.$title.'", meta_desc = "'.$meta_desc.'", meta_key = "'.$meta_key.', p_content="'.$content.' where id_page='.$nid;
$sql='UPDATE site_pages SET p_title="'.$title.'", meta_desc = "'.$meta_desc.'", meta_key = "'.$meta_key.'", p_content="'.$content.' where id_page='.$nid;
$qr=mysql_query($sql);
if(!$qr) {
echo 'ERROR SQL';}
else
{header("Location: http://mysite.ph/index.php"); };
?>
Выкидывает ошибку на запросе!
Виноват $content - текстареа в форме:
Комментарии
О, великий Yandex
mysql_query($sql) or die(mysql_error());
<?php ........, p_content="'.$content.'" wh........ ?>