this is what I'm trying to do... (which i'm aware doesnt and shouldnt work)
so the question is how do I rewrite that to work?
The sql bit basically pulls all the bookings for a given month, calculates that start and end point for that booking then the for loop goes through each day in the booking and makes that day red and flashing (just a tempory thing
) then moves on to the next booking for that month
PHP Code:
//make my array
$days = array(
while($row = mysql_fetch-array($sql)){
//do some calcs then
for($j = $Start; $j<= $End; $j++){
//put stuff in the array
$j=>array(NULL,NULL, '<span style="color: red; font-weight: bold; font-size: larger; text-decoration: blink;">'.$j.'</span>'),
}
}
);
The sql bit basically pulls all the bookings for a given month, calculates that start and end point for that booking then the for loop goes through each day in the booking and makes that day red and flashing (just a tempory thing

Comment