you can work with a timestamp. mktime() changes your date into a number you can sort, compare, ... ciao SVEN
"Shaun" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi, > > I have two dates retrieved from a database stored as variables: $mindate and > $maxdate, how can i compare the two with PHP so i can loop and increment > i.e. > > while($mindate < $maxdate){ > //do some stuff > $mindate++; > } > > Thanks for your help > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php