Hi, thanks for the reply.
Actually I got a table with the following fields
Fields are Date,Month,Year,x,y.
so, I can easily display Date,Month,Year,x,y. from the database.
I want to display Day as well but The table does not have this field.
so i am trying to do this way without inserting days into the fields.
$month=date("n");// Display Month as 1..12
$year=date("Y");// Display year as 2002
$day=date("j");// Display day as 1,2..31
$DAY=date("D");//Dislay Day as Mon,
/* I Will select data when todays date,month and year are match with the database.If todays day is Fri,then it /*
/* will increment to next days until the last date of the month */
$res = mysql_query("select Date,Month,Year,x,y from salat where Month='$month' AND Year='$year' AND date='$day'", $dbi);
while(list($Date,$Month,$Year,$x,$y) = mysql_fetch_row($res, $dbi)){
/* Here I want to increment day, ie $day+=1,but $DAY how ? */
echo " $Day | $Date | $Month | $Year |$x | $y<br> ";
}
Let say todays day is friday and there are 31 records
Output should display
Friday |3 |1|2002 |x | y
Sat|4|1|2002|x|y
Mon|5|1|2002|x|Y
.........