i have this table in database which called data

and i want make this sql
     $sql = mysql_query("SELECT $menucompare,( substr($menucompare, 13, 2)) AS dayname FROM data WHERE ... ");
Obs
    $menucompare // is variable which the date is selected from table(date or date2 or date3..) 
lets say we have this date from table 04/10/2012-(Tuesday) under the week 6 in w_date, so after substracting as it saids in sql it will be Tu . 
in week 7 there is 2 dates one . what i want is to output by every week the days names ordered by days
exemple like that
  week 7
   Tu
   Fr
   .
   .
or
week 6
Tu
.
.
can this happen ?is there a special WHERE clause here ?
and is it possible to write sql where claculating how many dates are in the week 
for exemple how many dates in week 7 , in the table up there is 2 in week 7 
 
     
    