Why do i only see the status whether online or offline, another can not see it meaning that it can not, but i'm offline for others but for me i'm online ?
$time = time()+300;
$user = $_SESSION['logged'];
$query = mysql_query("UPDATE users SET status='$time' WHERE username='$user'") or die (mysql_error());
$query1 = mysql_query("SELECT * FROM users WHERE status >= '$time'") or die (mysql_error());
$timestamp = mysql_num_rows($query1);
if ($timestamp == 1) { $status = '<span><img src="images/online.gif"></span>'; } else { $status = '<span><img src="images/offline.gif"></span>'; }