![]() |
Post count by date range
I am having trouble working with the dateline field. What I am trying to do is get the top post counts for 2013. But this code will return results but is not restricting to posts in the date range and just gives all the posts.
PHP Code:
|
It's displaying the count of all posts because you're displaying the 'posts' column from the user table. I think you want to add something like
Code:
COUNT(*) AS yearly_posts |
Gotcha, this worked.
PHP Code:
|
Edit - yeah, I just realized it should have been COUNT.
|
All times are GMT. The time now is 11:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|