Advertisement
Guest User

MySQL und HTML Platzhalter

a guest
Feb 12th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. mysql_select_db("player");
  2. $exe = mysql_query("SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW(), INTERVAL 2 MINUTE) < last_play;");
  3. $player_online = mysql_fetch_object($exe)->count;
  4. echo '<p class="status">$player_online Spieler sind online</p>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement