![]() |
Count Buddylist
I am currently trying to add how many buddies a user has in their profile. And i've tried several ways, and it doesnt get the right number. I tried using count, but that doesnt seem to work. Any ideas?
|
Look at one of my stats hacks, it has a query showing how.
|
eh.. it seems that it didnt quite work...
|
[sql]
SELECT LENGTH(buddylist) - LENGTH(REPLACE(buddylist, " ", "")) AS data FROM user WHERE userid = n; [/sql] It works perfectly fine. |
Hmm, i added in the code, and i dont get anymore errors, but my result isnt the total number of buddies, its another number.
|
bump :sleep:
|
I'm telling you, this works...
|
All times are GMT. The time now is 01:41 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:
|