el error
Error en consulta UPDATE fede SET id='1', titulo='ggg', titulo1='gg', cuerpo='ggg', WHERE id='1':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 'WHERE id='1'' at line 1
Código PHP:
$id=$_POST['id'];
$titulo=$_POST['titulo'];
$titulo1=$_POST['titulo1'];
$cuerpo=$_POST['cuerpo'];
include('../../conexion.php');
$sql = "UPDATE fede SET id='$id', titulo='$titulo', titulo1='$titulo1', cuerpo='$cuerpo', WHERE id='$id'";
$result = mysql_query($sql, $conexion) or die("Error en consulta $sql:".mysql_error() );