Hello guys, I'm currently making a blog using Serendipity as the backend and Flash as the interface. But to get some info about my blog to appear at my Flash interface, such as yearly and monthly archives, it's quite complicated for me.
My problem is, in Wordpress, for example, the SQL query to count archives is
Code: Select all
SELECT DISTINCT YEAR( post_date ) AS `year` , MONTH( post_date ) AS `month` , count( ID ) AS posts
FROM andyWP_posts
WHERE post_type = 'post'
AND post_status = 'publish'
GROUP BY YEAR( post_date ) , MONTH( post_date )
ORDER BY post_date DESC
LIMIT 0 , 30
But because of Serendipity using timestamp and i'm not so familiar with timestamp, I have no clue what should I do. I'm sure that Serendipity already have their own SQL query for archives. But I can't trace how it works. I hope you guys can help me.