Ok,
I've got this dataset that's based on a category ID. For the sake of argument, lets say that the dataset contains the following fields:
Assuming that I've already pulled all of the data where category_id = x, how would I build a PHP script to group that data based on the month/year that it has. In other words, each month/year has several entries, and I need them to both appear in chronological order (easy), and be grouped together based on the month (part that is driving me insane).
Any ideas?
I've got this dataset that's based on a category ID. For the sake of argument, lets say that the dataset contains the following fields:
Code:
category_id, entry_id, title, month, year
Assuming that I've already pulled all of the data where category_id = x, how would I build a PHP script to group that data based on the month/year that it has. In other words, each month/year has several entries, and I need them to both appear in chronological order (easy), and be grouped together based on the month (part that is driving me insane).
Any ideas?