08-20-2013, 09:29 AM
i think this was the problem
$qusr = "SELECT * FROM ".$Server[auth].".bg_user WHERE user_id = $user AND truepasswd = $pass";
to
$qusr = "SELECT * FROM ".$Server[auth].".bg_user WHERE user_id = ".$user." AND truepasswd = ".$pass."";

