Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/12/2012, 12:58
Avatar de fmb1982
fmb1982
 
Fecha de Ingreso: junio-2007
Mensajes: 128
Antigüedad: 16 años, 11 meses
Puntos: 0
problema con php y mysql


No se que pasa pero quiero actualizar un registro y me marca error
Código MySQL:
Ver original
  1. update Eve_Dat
  2.     set e_rfc='".$_POST['rfc_1']."',
  3.     e_ema='".$_POST['ema_1']."',
  4.     e_tel='".$_POST['tel_1']."',
  5.     e_cel='".$_POST['cel_1']."',
  6.     e_desc='".$_POST['des_1']."',
  7.     e_sal='".$_POST['sal_1']."',
  8.     e_sta='".$_POST['pag_1']."',
  9.     e_mon='".$_POST['mon_1']."',
  10.     e_fech='".$_POST['ingreso']."'
  11. where id_e='".$_POST['id_h']."'
Cita:
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 'id_e']; ?>'' at line 1

Última edición por gnzsoloyo; 13/12/2012 a las 13:02 Razón: ´Código SQL mal etiquetado