Ok here's another one that's stumping me:
I need PHP to check the logic on two dates entered. Basically, if the user has set the arrival date BEFORE the departure date, it will kick back an error. How can PHP know that Oct. comes after Sept?
Thanks,
Seth
use function mktime($hour, $min, $sec, $month, $year, [$dst]) all params are int
<? $date_1 = mktime(0, 0, 0, 11, 1, 2000); $date_2 = mktime(0, 0, 0, 10, 1, 2000); if ($date_1>=$date_2) echo 'D1>=D2'; else echo 'D1<D2'; ?>
PM