Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/12/2012, 08:15
venezonano_ita
 
Fecha de Ingreso: diciembre-2012
Mensajes: 11
Antigüedad: 11 años, 4 meses
Puntos: 0
error sentencia php con mysql

buen dia a todos, tengo la siguiente sentencia para actualizar los datos de un formulario:

Código MySQL:
Ver original
  1. UPDATE azienda_nosotros
  2.                     SET
  3.                         nombre = '".$nombre."',
  4.                         direccion = '".$direccion."',
  5.                         telefono = '".$telefono."',
  6.                         fax = '".$fax."',
  7.                         facebook = '".$facebook."',
  8.                         twiter = '".$twiter."',
  9.                         google = '".$google."',
  10.                         lat = '".$lat."',
  11.                         long = '".$long."',
  12.                         imagen = '".$im."'
  13.                     WHERE id = '".$id."'

cuando la uso me da el siguiente error:

UPDATE azienda_nosotros SET nombre = 'nome azienda', direccion = 'via portopalo, 8, siracusa, sr, italia', telefono = '09311850014', fax = '09311850014', facebook = 'face', twiter = 'twiteer', google = 'google', lat = '222', long = '1111', imagen = '' WHERE id = '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 'long = '1111', imagen = '' WHERE id = '1'' at line 11


no se donde esta el error, alguno me podrìa dar una mano??

Gracias de antemano

Última edición por gnzsoloyo; 24/12/2012 a las 10:23 Razón: COdigo PHP no permitido