Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/06/2013, 01:02
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 17 años
Puntos: 574
Respuesta: agregar calendario en mi registro

Código PHP:
Ver original
  1. $insertSQL = sprintf("INSERT INTO usuarios (nombre_user, nombre, apellido, password, email, fecha) VALUES (%s, %s, %s, %s, %s, now())",
  2.                        GetSQLValueString($_POST['nombre_user'], "text"),
  3.                        GetSQLValueString($_POST['nombre'], "text"),
  4.                        GetSQLValueString($_POST['apellido'], "text"),
  5.                        GetSQLValueString($_POST['password'], "text"),
  6.                        GetSQLValueString($_POST['email'], "text"));

Esto insertara automaticamente la fecha y hora del servidor.
__________________
Quim
--------------------------------------------------
Ayudar a ayudar es una buena práctica!!! Y da buenos resultados.