Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/01/2009, 16:17
Avatar de Avatar810
Avatar810
 
Fecha de Ingreso: agosto-2007
Ubicación: Por rumbos Regios
Mensajes: 485
Antigüedad: 16 años, 9 meses
Puntos: 23
Respuesta: problemas con fecha y hora!!!!!!!!!!!

cambia

$insertSQL = sprintf("INSERT INTO notas (fecha, de, comentario) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['fecha'], "date"),
GetSQLValueString($_POST['de'], "text"),
GetSQLValueString($_POST['comentario'], "text"));

Por

$insertSQL = sprintf("INSERT INTO notas (fecha, de, comentario) VALUES (%s, %s, %s)",
GetSQLValueString(date('Y-m-d H:i:s'), "date"),
GetSQLValueString($_POST['de'], "text"),
GetSQLValueString($_POST['comentario'], "text"));


-------------------------------------------------------------------------


Esta vez te me adelantaste GatorV jeje
__________________
Una demo siempre funcionará correctamente hasta que toque algo tu (hasta ahora) cliente.
Avatar810