Serex Posted April 15, 2012 Report Share Posted April 15, 2012 Este script muestra el nombre de los miembros del staff conectados: <?php mysql_connect("IP-DE-TU-SERVIDOR", "root", "CONTRASEÑA"); mysql_select_db("player"); $result = mysql_query("SELECT * FROM player WHERE name LIKE '[%]%' AND DATE_SUB(NOW(), INTERVAL 5 MINUTE) < last_play;"); while ($row = mysql_fetch_object($result)) { echo "$row->name <br>"; } mysql_free_result($result); ?> 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.