
30/11/2010, 22:32
|
| | Fecha de Ingreso: mayo-2009
Mensajes: 131
Antigüedad: 15 años, 9 meses Puntos: 0 | |
problemas con insert 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. |