Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. // Make a MySQL Connection
  4. mysql_connect("localhost", "ritua684_players", "hirukos1") or die(mysql_error());
  5. mysql_select_db("ritua684_players") or die(mysql_error());
  6.  
  7. //Query
  8. $online = mysql_query("SELECT * FROM online WHERE id = 1");
  9.  
  10. //put the query result into a var
  11. $totalonline = mysql_fetch_array($online);
  12.  
  13. //print the result
  14. echo "Total online: ".$totalonline['currentlyonline']."";
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement