Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<br />";
- echo "<table class='table table-bordered'>";
- echo "<tr>";
- echo "<th>ID</th>";
- echo "<th><span class='glyphicon glyphicon-user'></span> Nazwa użytkownika</th>";
- echo "<th><span class='glyphicon glyphicon-email'></span> Email</th>";
- echo "</tr>";
- $conn = new mysqli("mysql.hostinger.pl", "u638954974_admin", "superhaslo123", "u638954974_admin");
- $sql = "SELECT * FROM users";
- $result = $conn->query($sql);
- if ($result->num_rows > 0) {
- while($row = $result->fetch_assoc()) {
- $id = $row['uid'];
- $player = $row['uname'];
- $email = $row['uemail'];
- echo "<tr>";
- echo "<td>" . $id . "</td>";
- echo "<td><a href='profile/".$player."'" . $player . "</a></td>";
- echo "<td>" . $email . "</td>";
- echo "</tr>";
- }
- echo "</table>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment