okay, the second one:
$numdays = (%time2 - $time1)/(60*60*24)
if ($numdays > 7)
echo "It has been over a week, therefore there has to be a weekend inbetween"
else
{
// I havent tested this (I'm not on my server) but i think it will work
$firstday = date("w",$time1); // gets the day of the week for the first
$secondday = date("w",$time2); // ditto second
if ($secondday < $firstday)
echo "It's not been 7 days, but there is a weekend inbetween";
else
echo "There is no weekend inbetween";
}
my only slight concern is using the time stamp in the date function, but i'm farily sure that works. let me know how you get on