Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/07/2008, 10:27
Ruben_C
 
Fecha de Ingreso: febrero-2006
Mensajes: 217
Antigüedad: 19 años
Puntos: 0
Respuesta: como hago esta consulta?

Las variables no estan vacias, es que hice un submit en el form para copiar y pegar el error sin cargar nada. Pero cuando intento subir el archivo, si aparece la variable con contenido:

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 'SET fotofirma='fotos_fichas/4953442.gif', fotofirmaup='../fotos_fichas/4953442.g' at line 1

Fijense que tengo esta consulta y funciona perfecto:

Código PHP:
"UPDATE noticias_fichas SET titulo='$titulo', fuente='$fuente', resumen='$resumen', noticia='$noticia' WHERE id='$id'" 
Que puede ser?

Última edición por Ruben_C; 17/07/2008 a las 11:19