I have two tables:
**WEEK**
-id
-week #
**ITEM**
-id
-name
-is_marked
-week #
My final desired result is to have a table that has a rowspan="3" table cell with week #
in it, followed by the three results for each week from SELECT * FROM item WHERE week = week_number AND is_marked = 1
I don't know if I need to JOIN anything because I don't really need any data from the WEEK table, but I can't quite get how I'd loop through the results to get the desired output. Thoughts?