OK thanks, that helped me fix the problem, i set the mktime to
("24","60","60",$emonth, $eday, $eyear);
So it always checks today, as if it were tonight, not this morning. Therefore being in the future.
I was wondering if u could help with the following. Its a piece of code, to make sure enddate is never anymore than 30 after the startdate. I'm sure I had it working once, but now it returns an error even if the date is just 3days not 30.
$startdate = mktime ("0","0","0",$smonth, $sday + 2592000, $syear);
//259000 = 60 60 24 * 30
$enddate = mktime ("0","0","0",$emonth, $eday, $eyear);
if ($enddate > $startdate){
$feedback .= ' ERROR - 30 Days Exceeded ';
return false;
}
Can you see anything wrong here? I thought it was fine.
Many thanks for your previous help
Cheers
Ben