wud be easier to do this:
PHP Code:
$randname = $DB_site->query_first("SELECT username, userid FROM user ORDER BY rand() LIMIT 1");
$randuser = "<a href=\"./VBFOLDER/member.php?s=".$session['sessionhash']."&action=getinfo&userid=".$randname['userid']."\">".$randname['username']."</a>";
then put
PHP Code:
echo($randuser);
where you want it to appear
and i fixed a bit of ur coding mr e