Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/12/2005, 06:59
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Código PHP:
<?php
    $otrafecha
="23/12/2005";
    
$arrayotrafecha=split($otrafecha,"/");
    
//timestamp de la fecha de hoy
    
$timehoy=mktime(0,0,0,date("n"),date("d"),date("Y"));
    
//timestamp otra fecha
   
$timeotrafecha=mktime(0,0,0,$arrayotrafecha[1],$arrayotrafecha[0],$arrayotrafecha[2]);
    if(
$timeotrafecha>=$timehoy)
    {
         
//insertar la fecha
    
}
?>