![]() |
Trying to limit query to X amount of days...how?
What do I need to change in these bits of code to make it where the "Most Read" and "Most Commented" so that the modules only list the top articles in the last "X" amount of days?
PHP Code:
PHP Code:
|
You could do something like:
PHP Code:
Then in the WHERE clause add HTML Code:
AND thread.dateline > $cutoff |
All times are GMT. The time now is 06:39 AM. |
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:
|