Sorry, your selected duration: $Month1/$Day1/$Year1 to $Month2/$Day2/$Year2 is invalid. Please go back and change your date selection.
";
exit();
}
if ($Date3 > $Date1)
{
print "
Sorry, your selected open date for reservation: $Month3/$Day3/$Year3 is later than $Month1/$Day1/$Year1. Please go back and change your date selection.
";
exit();
}
}
else
{
print "
Sorry, your selected date $Month1/$Day1/$Year1 or $Month2/$Day2/$Year2 or $Month3/$Day3/$Year3 is invalid. Please go back and change your date selection.
";
exit();
}
$query = "SELECT StartDate from SR_semester WHERE Semester = '$Semester' and Year = '$Syear'";
$result = mysql_query($query, $connection) or die ("Error in query: $query. " . mysql_error());
$i = mysql_num_rows($result);
if ($i>0)
{
print "
Sorry, $Semester $Syear semester already existed. Please go back and change your selection.