Hello!
I tried your function, edited it somewhat (another date format), and yes, it works. Now, the next problem: at themoment I am printing dates from a database like this:
$result = mysql_query('SELECT datum, DATE_FORMAT(datum,"%w"), COUNT(*) FROM test GROUP BY datum ORDER BY datum ASC');
while (($row = mysql_fetch_row($result)) AND ($result > 0))
{
echo $row[0] . "<BR>";
}
What I need is something like this...
I have two variables, $begindate and $enddate. I want to print a list of all variables lying in between the two.
How do I do that??
And would this work for the last date:
echo nextDate($begindate );
if (nextDate($begindate )==$enddate){
exit;
}