Hello every one!
I'm developing one simple site, and I need to make an "archive" script.
My MySQL Table looks like:
| id | title | content | is_deleted | pub_date |
*pub_date is in PHP time() format. Example: 1258150430
So, what I want to make is an example tree view of entries from database sorted by year and month. Example:
2009
-January
--Post title 1
--Post title 2
--Post title 3
--Post title 4
-February
--Post title 1
--Post title 2
--Post title 3
--Post title 4
-April
--Post title 1
--Post title 2
--Post title 3
--Post title 4
2010
-January
--Post title 1
--Post title 2
--Post title 3
--Post title 4
-February
--Post title 1
--Post title 2
--Post title 3
--Post title 4
-April
--Post title 1
--Post title 2
--Post title 3
--Post title 4
Can anyone help me with this problem? I really don't know how to do this...
Cheers,
eshko