Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet" href="style.css" type="text/css">
- </head>
- <?
- error_reporting(-1);
- ini_set('display_errors', 'On');
- $DBConfig = array ("host" => "localhost", "user" => "root", "password" => "ESTO TAMPOCO", "dbname" => "ZEIStats");
- $mysqli = new mysqli($DBConfig["host"], $DBConfig["user"], $DBConfig["password"], $DBConfig["dbname"]);
- if ($mysqli->connect_error)
- {
- die($mysqli->connect_errno);
- }
- echo '<center>';
- echo '<div class="table-title">';
- echo "<table border\"1\">
- <tr>
- <th>Nombre</th>
- <th>Ocupacion</th>
- <th>Grupo</th>
- <th>Dinero</th>
- <th>Zombie Kills</th>
- <th>Pais</th>
- <th>Ping</th>
- </tr>";
- echo '</div>';
- echo '</center>';
- if ($result = $mysqli->query("SELECT * FROM Scoreboard"))
- {
- while ($dat = $result->fetch_object())
- {
- $Nombre = $dat->Nombre;
- $Ocupacion = $dat->Ocupacion;
- $Group = $dat->Group;
- $Dinero = $dat->Dinero;
- $Pais = $dat->Pais;
- $zk = $dat->ZombieKills;
- $ping = $dat->Ping;
- echo "<tr>";
- echo "<td><center>".$Nombre."</center></td>";
- echo "<td><center>".$Ocupacion."</center></td>";
- echo "<td><center>".$Group."</center></td>";
- echo "<td><center>".$Dinero."</center></td>";
- echo "<td><center>".$zk."</center></td>";
- echo'<td><center><img src="http://www.skype-emoticons.com/images/'.strtolower($Pais).'.png" style="width:20px;height:20px"></center></td>';
- echo "<td><center>".$ping."</center></td>";
- echo "</tr>";
- }
- }
- echo "</table>";
- $mysqli->close();
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment