masterdx1 Posted June 16, 2013 Report Share Posted June 16, 2013 Hola alguien tiene ese script Quote Link to comment Share on other sites More sharing options...
pepineitor Posted June 16, 2013 Report Share Posted June 16, 2013 <?php mysql_select_db("player"); $reino1 = "SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW() and map_index="1", INTERVAL 10 MINUTE) < last_play;"; $reino2 = "SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW() and map_index="21", INTERVAL 10 MINUTE) < last_play;"; $reino3 = "SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW() and map_index="41", INTERVAL 10 MINUTE) < last_play;"; $u1 = mysql_query($reino1,$sqlserver); $u2 = mysql_query($reino2,$sqlserver); $u3 = mysql_query($reino3,$sqlserver); $on_reino1 = mysql_fetch_object($u1)->count; $on_reino2 = mysql_fetch_object($u2)->count; $on_reino3 = mysql_fetch_object($u3)->count; echo $on_reino1; echo $on_reino2; echo $on_reino3; ?> Tendras que definir la variable sql server con los datos de tu conexión. Salu2. Quote Link to comment Share on other sites More sharing options...
pepineitor Posted June 16, 2013 Report Share Posted June 16, 2013 #Post Duplicado Quote Link to comment Share on other sites More sharing options...
masterdx1 Posted June 17, 2013 Author Report Share Posted June 17, 2013 Cerrar post incontre 1 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.