View Full Version : Count Buddylist
joeboo
03-23-2003, 08:00 PM
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?
filburt1
03-23-2003, 08:04 PM
Look at one of my stats hacks, it has a query showing how.
joeboo
03-23-2003, 10:23 PM
eh.. it seems that it didnt quite work...
filburt1
03-23-2003, 10:40 PM
SELECT LENGTH(buddylist) - LENGTH(REPLACE(buddylist, " ", "")) AS data FROM user WHERE userid = n;
It works perfectly fine.
joeboo
03-23-2003, 11:14 PM
Hmm, i added in the code, and i dont get anymore errors, but my result isnt the total number of buddies, its another number.
joeboo
03-25-2003, 12:43 AM
bump :sleep:
filburt1
03-25-2003, 01:18 PM
I'm telling you, this works...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.