Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // MySQL connect & db select
- $link = mysql_connect('localhost', 'root', 'password');
- if (!$link) {
- die('Could not connect: ' . mysql_error());
- } else {
- mysql_select_db('database', $link);
- }
- // MySQL Query and Dispaly
- $result = mysql_query("SELECT * FROM online_players2 ORDER BY logon_time ASC");
- $list = null;
- while($row = mysql_fetch_array($result))
- {
- $list .= $row['current_world'] . '-' . $row['player'].'<br />';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment