Zepo. Posted December 2, 2007 Share Posted December 2, 2007 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 More sharing options...
Wes1890 Posted December 2, 2007 Share Posted December 2, 2007 ^ well does it give an error? Link to comment https://forums.phpfreaks.com/topic/79842-solved-is-this-possible/#findComment-404348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.