Ok, another question....
Heres my SQL which works perfectly.
$sql = "SELECT , count() AS cnt , DATE_FORMAT(datestamp,'%W') AS mydatestring
FROM phplog
WHERE phplog.field1='$id' AND MONTH(phplog.datestamp) = '$mnth'
GROUP BY mydatestring
ORDER BY DATE_FORMAT(datestamp,'%W')
";
Now the results are:
Friday 4
Monday 4
Thursday 4
Tuesday 1
Wednesday 6
Any ideas how i can get this to sort, starting with monday and ending with friday?
is it obvious?