<?php
$conn=mysql_connect('localhost','','');
mysql_select_db("pp",$conn);
$sql="UPDATE home SET body='$POST[te1]', menu='$POST[te2]', header='$POST[te3]', right='$POST[te4]', left1='$POST[te5]', left2='$POST[te6]', left3='$POST[te7]', left4='$POST[te8]', blankfooter='$POST[te9]', footer='$POST[te10]'";
$result=mysql_query($sql,$conn) or die (mysql_error());
echo "updated";
?>
it is showing this 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 'right='#right {position : relative; height : 779px; width : 267
roshanjameer