Quote:
Today at 07:47 PM Xelation said this in Post #5
PHP Code:
$userinfo[where] = "Retrieving Password";
break;
case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
if ($user[username]) {
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
} else {
$userinfo[where] = "Viewing Profile of a Forum Member";
}
this is line 129:
PHP Code:
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
|
Like filburt said, just add the $DB_site to the global line somewhere above that code.