hi,
the following code is as of for 10th October 2001, u cud fetch the date,month and year from database..and use the code below and get the day of the year....
<?php
$ts=mktime(0,0,0,10,4,2001);
echo date('D',$ts);
?>
well if u dont manage to fetch date in the req format, just fetch the date and use explode function to get them in an array...
good luck,
sachin balsekar.