Tengo un error y no se cual es!! aver si alguien lo puede ver..
mensaje de 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 'WHERE id=''' at line 1
Codigo:
<?php
include ("dconexion.php");
include ("formmodificaraa.php");
$con=mysql_connect($host,$user,$pw)or die("Problemas al conectar con Mysql");
mysql_select_db($db,$con)or die("Problemas con DB");
mysql_query("UPDATE auto SET cliente_cliente='$_POST[cliente_cliente]', patente='$_POST[patente]', modelo='$_POST[modelo]', kilometro='$_POST[kilometro]', doperacion='$_POST[doperacion]', strabajo='$_POST[strabajo]', efecha='$_POST[efecha]', sfecha='$_POST[sfecha]', WHERE id='$s'",$con)or die (mysql_error());
echo "Modificacion correcta";
?>
----------------------