Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/01/2005, 11:48
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 24 años
Puntos: 1
Pues podes hacerlo así

Pues puedes hacerlo de esta forma:
Código PHP:
 $dia = date("d");
 
$mes = date("m");
 
$year = date("Y"); // o date("y") si solo quieres las dos ultimas cifras
 
$fecha = $dia."/".$mes."/.".$year;
 
$query = "INSERT INTO table(fecha) VALUES('".$fecha."')"; 
Salu2
__________________
Ing. Reynier Pérez Mira