View Full Version : variable for no of pm
robflack
04-21-2003, 10:13 PM
could someone please tell me the variable to call
number of PMs the user has
plus
the number of posts they have posted
thanks for any help
filburt1
04-21-2003, 10:40 PM
1. No easy way except a query:
SELECT COUNT(privatemessageid) FROM privatemessage WHERE userid = $bbuserinfo['userid']
2. $bbuserinfo['posts']
robflack
04-22-2003, 08:59 AM
why why i use $bbuserinfo['posts']
do i get the message
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/londonbydeuk/public_html/forums/communicate/index.php(56) : eval()'d code on line 2
Logician
04-22-2003, 12:00 PM
remove 's in the variable name to avoid the error. ie. $bbuserinfo[posts]
filburt1
04-22-2003, 01:59 PM
By doing that though you're using completely deprecated methods for using arrays.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.