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 Quote Link to comment Share on other sites More sharing options...
Wes1890 Posted December 2, 2007 Share Posted December 2, 2007 ^ well does it give an error? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.