Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/09/2009, 20:47
horape
 
Fecha de Ingreso: mayo-2009
Mensajes: 210
Antigüedad: 15 años
Puntos: 0
Respuesta: Problema con insert

Cita:
Iniciado por blroot Ver Mensaje
La variable existe, en la base de datos tambien existe la columna con ese valor.
Y no, tampoco es una actualizacion, y si hay con que comprobar, ya que datos hay.

Ahora:

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 `flv` = '-1309877437.flv'' at line 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 `flv` = '-1309877437.flv'' at line 1
si ya existe y le queres cambiar algo se llama actualizacion (update).. si es que no entendi mal
asi que como te dijeron, tenes que usar UPDATE ... SET, y no INSERT (que es para agregar filas, no para modificarlas)