Thanks for the input. I am still unsure of exactly how to go about it though.
For example, I am using this code to get the total number of days counting weekends, which is basicaly subtracting the first date from the second date using strtotime and then dividing by (606024).
for($i=0;$i<$numRows;$i++){
$anyRow = $db->getAnyRow($i);
$days = (strtotime($anyRow['StartDate']) - strtotime($anyRow['OutDate])) / (60 * 60 * 24);
$days=substr($days,1,strlen($days));
$totalDays+=$days;
}//end for
Now I am trying to figure out how to do the same thing except subtract days that are Sat or Sun.
For example
for($i=0;$i<$numRows;$i++){
$anyRow = $db->getAnyRow($i);
$days = (strtotime($anyRow['StartDate']) - strtotime($anyRow['OutDate])) / (60 * 60 * 24);
$firstDate = $anyRow['StartDate'];
for($j=0;$j<$days;$j++){
$theDate = strtotime("+".$j." day", $firstDate);
if($theDate != "Sat" && $theDate != "Sun"){//Not sure how to tell if the date is a Sat or Sun
$totalWorkDays+=1;
}//end if
}//end for
}//end for