hello i am trying to make a schedule based upon the current days of the week, then the rest falls in an archive.
here is what i have so far
$sql = 'SELECT DATE_FORMAT(date,"%a") AS cur_day, date,day,download,heading,id,listen,listen_link,text,timestamp FROM webcasts ORDER BY date DESC';
ok so now i have results that show my results with a day name (like Sun. Sat.) etc. -> how do i know that the results are from the current week, how do i determine this?
do i need to subtrace the date - 7 or something like that.
what i want:
this sunday - date - heading - etc.
this week - sat
this week - frid
this week - thurs
this week - wed
this week - tues
this week - mon
last week - sunday
last week archives
any help would be greatly appreciated.