I've tried
$query = "SELECT status,start_date,end_date FROM availability WHERE user_id='113'";
$result=db_query($query);
while($row=mysql_fetch_array($result)){
$start = $row['start_date'];
$end = $row['end_date'];
$syear=substr($start, 0, 4); $smonth=substr($start, 4, 2); $sday=substr($start, 6,2);
$smktime = mktime("","","","$smonth","$sday","$syear");
$sdate = date ("dmY",$smktime);
$eyear=substr($end, 0, 4); $emonth=substr($end, 4, 2); $eday=substr($end, 6,2);
$emktime = mktime("","","","$emonth","$eday","$eyear");
$edate = date ("dmY",$emktime);
while($sdate <= $edate){
echo "<tr><td><font face=$font color=green>$sdate</font></td>";
}
$sdate++;
}
But it seems to just add +1 to the year.
Ben