Tema: Subir imagen
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/02/2016, 17:04
rodocoyote15
 
Fecha de Ingreso: diciembre-2015
Mensajes: 529
Antigüedad: 8 años, 4 meses
Puntos: 39
Respuesta: Subir imagen

En tu sql tienes esto
Código PHP:
Ver original
  1. $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
  1. $sql = sprintf("INSERT INTO articulos (artTit, artTxt, artLayout, artClas) VALUES ( '$titulo', '$texto', '$layout', '$clasificacion')");