lol sorry...
here is what I have been working on, but this only shows me if im online not the user...
Code:
$req_user = trim($_GET['user']);
if(!$req_user || strlen($req_user) == 0 ||
!eregi("^([0-9a-z])+$", $req_user) ||
!$database->usernameTaken($req_user)){
die("Username not registered");
}
$req_user_info = $database->getUserInfo($req_user);
if(strcmp($req_user['username']) == 0){
echo "online";
} else {
echo "offline";
}
when I veiw this on other users account it shows that they are online meaning its getting if im online not the user...
I am so confused and not confused..
Bookmarks