Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/01/2010, 08:33
Lachi
 
Fecha de Ingreso: junio-2004
Ubicación: Villa Carlos Paz
Mensajes: 88
Antigüedad: 19 años, 10 meses
Puntos: 2
Respuesta: Probelma Sintaxis

Cita:
Iniciado por SoutlinK Ver Mensaje
Al $valores2[0] tienes que sacarle las comillas, si es un numero

Código PHP:
mysql_query("UPDATE $tabla_nombre SET " $tags2[$i] . "= '" $valores2[$i] . "' where " .$tags2[0] . " = " $valores2[0] . " ") or die(mysql_error()); 
Me da 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 '= '' where id_inmueble = 8' at line 1