Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = myql_connect('frostburnt.site.nfoservers.com:3306' ,'frostburnt', '************','frostburnt_bans');
- if (mysqli_connect_errno())
- {
- echo "NOT CONNECTED";
- }
- else
- {
- $result = mysql_query("SELECT * FROM banlist ORDER BY id ASC");
- echo "<table border='1'>
- <tr>
- <Th>ID</Th>
- <Th>IP</Th>
- <Th>Player</Th>
- <Th>Reason</Th>
- <Th>Admin</th>
- </tr>";
- while ($row = mysql_fetch_array($result)){
- echo "<tr>";
- echo "<td>" . $row ['id'] . "</td>";
- echo "<td>" . $row ['ip'] . "</td>";
- echo "<td>" . $row ['player'] . "</td>";
- echo "<td>" . $row ['reason'] . "</td>";
- echo "<td>" . $row ['admin'] . "</td>";
- }
- echo "</table>";
- //IF CONNECTED TO DATABASE PRINT CONNECTED
- echo "CONNECTED';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement