Jump to content

how would i do?


zhshero

Recommended Posts

nvm i got it if this is how its done

 

 

$userfinal = get_username($_SESSION['user_id']);
$the_time = time();
mysql_query("UPDATE users SET date='$the_time' WHERE Username='$userfinal'")or die(mysql_error());

 

if (isset($user['date']) && (time() - $user['date'] > 60)) {

echo 'offline';
} else {

echo "<font color=green>[Online Now!]</font>";
}
$user['LAST_ACTIVITY'] = time(); // update last activity time stamp
?>

Link to comment
https://forums.phpfreaks.com/topic/218910-how-would-i-do/#findComment-1135304
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.