Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
- <script src="sorttable.js"></script>
- <style>
- body {
- background-color: #FFFFFF;
- }
- </style>
- <?php
- $con=mysqli_connect("ip","username","password","databaseName");
- // Check connection
- if (mysqli_connect_errno())
- {
- echo "<h1><b>Sorry, our databases are currently offline.</b></h1>" . mysqli_connect_error();
- goto a;
- }
- $result = mysqli_query($con,"SELECT * FROM globalban");
- echo "
- <center>
- <table class='sortable pure-table'>
- <tr>
- <th>Ban #</th>
- <th>SteamID</th>
- <th>Sdmin</th>
- <th>Ban Message</th>
- <th>UnturnedName</th>
- <th>Duration</th>
- <th>Last Update</th>
- </tr>
- </center>
- ";
- while($row = mysqli_fetch_array($result))
- {
- echo "<tr>";
- echo "<td>" . $row['id'] . "</td>";
- echo "<td>" . $row['steamId'] . "</td>";
- echo "<td>" . $row['admin'] . "</td>";
- echo "<td>" . $row['banMessage'] . "</td>";
- echo "<td>" . $row['charactername'] . "</td>";
- echo "<td>" . $row['banDuration'] . "</td>";
- echo "<td>" . $row['banTime'] . "</td>";
- echo "</tr>";
- }
- mysqli_close($con);
- a:
- ?>
Advertisement
Add Comment
Please, Sign In to add comment