I thought so aswell, just cant get it working..
Got a user with the UserID as 1 in the table tableAlpha
The userID's in tableAlpha "Match" userids from vbulletin>user table.
PHP Code:
$currentuser=$bbuserinfo['userid'];
// ??? collect current stats
$userstat=$db->query_first("SELECT * FROM " . TABLE_PREFIX . "tableAlpha WHERE UserID='".$currentuser."'");
Shows nothing, howewer if i replace the var currentuser with
PHP Code:
$currentuser='1';
then it loads the user fine, so im thinking the $bbuserinfo['userid']; does not return
the correct value
I also tryed entering the bbuserinfo direct into the query with no luck..