So i take 3 dates from a form. These are then run through a save script into the database. here is the code to take one of the dates from the form and convert to a unix stamp (the other 2 date boxes work the same):
$temp_wd = explode("-",$_POST['date']); $wed = mktime(0,0,0,$temp_wd,$temp_wd,$temp_wd); $weddingdate = date("Y-m-d",$wed);
now the next date comes as vars; $temp_gd, $group and $groupdate. How can I compare these two dates in an if statement? I want to test if $weddingdate > $groupdate.