Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Make a MySQL Connection
- mysql_connect("localhost", "ritua684_players", "hirukos1") or die(mysql_error());
- mysql_select_db("ritua684_players") or die(mysql_error());
- //Query
- $online = mysql_query("SELECT * FROM online WHERE id = 1");
- //put the query result into a var
- $totalonline = mysql_fetch_array($online);
- //print the result
- echo "Total online: ".$totalonline['currentlyonline']."";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement