Thanks again...problem, though:
Here's what I used:
$commenttotal = mysql_result($result,0,0);
Calling upon it doesn't work, and I think it's due to the nature of the code I'm using...it's the code vBulletin uses to get a member's profile:
Code:
$userinfo=$DB_site->query_first("SELECT username,joindate,lastpost,usertitle,email,showemail,invisible,homepage,icq,aim,yahoo,biography,posts FROM user WHERE userid=$userid");
$commentcount=$DB_site->query_first("SELECT COUNT(*) FROM user, comments WHERE user.userid = comments.userid AND user.userid='$userid';");
$username=htmlspecialchars($userinfo[username]);
$searchusername=urlencode($userinfo[username]);
$datejoined=date($dateformat,$userinfo[joindate]+(($timeoffset+$bbtimezoneoffset)*3600));
$commenttotal = mysql_result($result,0,0);
$usertitle=$userinfo[usertitle];
That's the block I've got...As you can see the second query there is yours...Any ideas?
Bookmarks