
23/02/2016, 17:10
|
| | Fecha de Ingreso: febrero-2016
Mensajes: 9
Antigüedad: 9 años Puntos: 0 | |
Respuesta: Subir imagen Cita:
Iniciado por rodocoyote15 En tu sql tienes esto
Código PHP:
Ver original$sql = sprintf("INSERT INTO articulos VALUES ('', '', '', '$titulo', '$texto', '', '$layout', '$clasificacion')");
Indicandole que a "artDatCre" le de el valor ''. Lo cual CURRENT_TIMESTAMP no entiende, y por eso te pone ese valor, se entiende?
Intenta así
Código PHP:
Ver original$sql = sprintf("INSERT INTO articulos (artTit, artTxt, artLayout, artClas) VALUES ( '$titulo', '$texto', '$layout', '$clasificacion')");
Perfecto! Me ha funcionado, muchas gracias. |