I am new to PHP, but do have experience in programming in ASP. I would like to make a function that gets the day number of a date I get from the database (Sunday = 1, Saturday = 7). Now in ASP I would use the day-function on the variable:
<%
found_date = rs("date")
day_number = day(found_date)
%>
The code I have in PHP now is:
$result = mysql_query("select datum,count(*) from xxx group by datum order by datum");
while (($row = mysql_fetch_row($result)) AND ($result > 0))
echo"<TR BGCOLOR=#685F9B height=15>";
$breedte = floor($row[1] * (300 / $max_aantal));
echo"<TD VALIGN=middle ALIGN=left><B> $row[0]</B></FONT><BR></TD>";
row[0] represents the date field I get from my database. Now I want to determine what the day number of row[0] is. How do I do that??????
Joyce