Jump to content

[SOLVED] Is this possible?


Zepo.

Recommended Posts

Im not sure if the query is written correctly...

//Users Online Block
$timeoutseconds = 300;
$timestamp = time();
$timeout = $timestamp-$timeoutseconds;
$uonline = mysql_num_rows(mysql_query("SELECT id FROM teams WHERE lastupdated>$timeout"));
if($uonline == 1){
echo"There is $uonline team online.";
}else{
echo"There is $uonline teams online.";
}
//End Users Online

Link to comment
https://forums.phpfreaks.com/topic/79842-solved-is-this-possible/
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.