The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Daily attachments count query
Here is what I have but I don't think it's right, maybe someone can point me in the right direction as far as where I am pulling it from, it's hard to tell if dateline is correct.
Code:
// ### Total Daily Hits ## $todays_views = $DB_site->query_first(' SELECT COUNT(*) AS count FROM ' . TABLE_PREFIX . 'attachment WHERE dateline >= "' . strtotime("-1day") . '" '); $newhits = number_format($todays_views ['count']); // ### Total Daily Hits ## |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|