Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/01/2010, 11:38
Avatar de JessicaTJ
JessicaTJ
 
Fecha de Ingreso: enero-2007
Ubicación: 127.0.0.1
Mensajes: 472
Antigüedad: 17 años, 3 meses
Puntos: 25
Sintax error al hacer update

Hola chicos, veran, tengo esta consulta Mysql
Código PHP:
$sql=mysql_query("UPDATE `usuarios` SET `password` = '{$clave}' , `key` = ''   WHERE `key` = '{$key}' ") or die(mysql_error()); 
Y me regresa este 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 'key='valordecampokeyactual'' at line 1

Ya intente de varias maneras, sin las ` y cosas asi pero sigue dandome el mismo error, a segun yo la sintaxis esta bien, pero sigue el problema, alguno de ustedes sabe ke podria estar mal?

Agradecere mil su ayuda
__________________
٩(͡๏̯͡๏)۶ || ٩(͡๏̯͡๏)۶