This is a little out of my league. I’ve had someone help me with the MySQL query — which does what I need it to. Can you guys please help me with the PHP for the nested output? Here’s the query:
select presspublishDate
, presscategoryName
, pressTitle
from press
inner
join presspublish
on press.pressPublish
= presspublish.presspublishID
inner
join presscategories
on press.pressCategory
= presscategories.presscategoryID
order
by presspublishDate
, presscategoryName
, pressTitle
Here’s what the tables look like:
1 || 2005-01-30
2 || 2005-01-31
1 || Auto
2 || Business
1 || 1 || 1 || Title #1
2 || 1 || 1 || Title #2
3 || 1 || 3 || Title #3
And here’s the output I need:
2005-01-30
Auto
1. Title #1
2. Title #2
Home
1. Title #3
2005-01-31
Business
1. Title #4
Any help will be greatly appreciated. Thank you so much!