Forum Moderators: coopster
$date_to_compar = strtotime($day.' '.$month.' '.$year.' '.$hour.':'.$minute.' '.$ampm); $today=time();
if($today > $date_to_compar)
{
//do action
}
where day = 1 to 30, month = January to december, year = eg 2005, hour = 12hr format, minute = minutes, ampm = am OR pm
Now that I have changed month to an integer i cannot get my code to work! Can anybody help?! why did this work when month was a string but wont work now month is an integer? Im lost
Thanks!