
01/12/2010, 00:36
|
| | Fecha de Ingreso: noviembre-2010
Mensajes: 6
Antigüedad: 14 años, 3 meses Puntos: 0 | |
Respuesta: problemas con insert Cita:
Iniciado por sniffer_ven Este es el codigo el error que me muesta es:
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 '' at line 9
$strsql="INSERT INTO bit (login,fechaent,fechasal,horaent,horasal,oper,mod)
VALUES
('$loginUsername',
DATE_FORMAT(NOW(),'%Y-%m-%d %h:%i:%s'),
DATE_FORMAT(NOW(),'%Y-%m-%d %h:%i:%s'),
DATE_FORMAT(NOW(),'%h:%i:%s'),
DATE_FORMAT(NOW(),'%h:%i:%s'),
'Inicio sesion un usuario',
DATE_FORMAT(NOW(),'%Y-%m-%d %h:%i:%s');";
$Result1 = mysql_query($strsql, $transporte) or die(mysql_error());
Espero contar con su ayuda puesto que no consigo el error. Pues como dice helacer, te sobra ";" y te falta un ")" que cierra el VALUES... pon ese ")" sobre el ";" que te marque en rojo :D
Saludos |