![]() |
Select count from table...
I am using this code for an AJAX Chat Integration.
https://vborg.vbsupport.ru/showthrea...=269509&page=2 Updated to the following recently: vBulletin 4.2.3 Patch Level 2 PHP 5.6.27-0+deb8u1 (cli) And now the user counter doesn't work properly on the nav bar. FYI, I've updated the "global_bootstrap_init_start" slightly, to make it a little more specific (and to remove duplicate login entries): Code:
$resCNT = mysql_query("SELECT COUNT(userID) FROM ajax_chat_online GROUP BY userID"); |
It's not outputting anything because you don't fetch the results.
What you want to do is COUNT all DISTINCT records, example (untested): PHP Code:
|
Thank you. That did it.
|
All times are GMT. The time now is 08:57 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:
|