![]() |
Quote:
|
Nah, that wasn't a typo - just bad (brain) memory.
I don't deal with the subscriptionlog table that often you know. |
True, but it was still classic. ;)
|
Thanks again for all the help guys, hopefully this is the last I have to bug you about this particular hack.
So I ran the query with the prefix and updated code as [sql]select count(*) from cmq_subscriptionlog where status=1[/sql] And it returned the correct number, 95. So then I entered the following in the plugin manager for the global_start PHP Code:
But when I went back to my board to check it, it displalyed ARRAY What'd I screw up this time :dead: |
Use $subscribers[totalactive] in the template.
|
Quote:
I'd like to throw out one last thank you to all. |
I know this thread is from back in 2005, but this mod is still working and has been a huge asset to my forum.
But I've grown and have added other subscriptions. Here is my question... How can I modify this code to only count the total active subscribers in a specific subscription? Code:
$subscribers = $db->query_first("SELECT COUNT(*) AS totalactive FROM " . TABLE_PREFIX . "subscriptionlog WHERE status=1"); |
Quote:
PHP Code:
|
All times are GMT. The time now is 10:43 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:
|