I need a task to be done in one query let me show u the structure of my table
NEWS
news_id
news_date
news_topic
news_desc
What i want to do is display records like this
news_date
All news records Pertaining to same same date ……
for e.g
23 March , 2012
All news of 23 march like topic desc
22 March , 2012
All news of 22 march like topic desc
If you want to only pull out a certain days news then:
to filter for a specific topic
If you just want to order the data by date (so you can output in order
For the php you could do something like: