View difference between Paste ID: cgRdq9Dw and vEFdFhRv
SHOW: | | - or go back to the newest paste.
1
<html>
2
<head>
3
<link rel="stylesheet" href="style.css" type="text/css">
4
</head>
5
<?
6
error_reporting(-1);
7
ini_set('display_errors', 'On');
8-
$DBConfig = array ("host" => "localhost", "user" => "root", "password" => "16984493012_k", "dbname" => "ZEIStats");
8+
$DBConfig = array ("host" => "localhost", "user" => "root", "password" => "ESTO TAMPOCO", "dbname" => "ZEIStats");
9
$mysqli = new mysqli($DBConfig["host"], $DBConfig["user"], $DBConfig["password"], $DBConfig["dbname"]);
10
11
if ($mysqli->connect_error)
12
{
13
        die($mysqli->connect_errno);
14
}
15
16
echo '<center>';
17
echo '<div class="table-title">';
18
echo "<table border\"1\">
19
<tr>
20
<th>Nombre</th>
21
<th>Ocupacion</th>
22
<th>Grupo</th>
23
<th>Dinero</th>
24
<th>Zombie Kills</th>
25
<th>Pais</th>
26
<th>Ping</th>
27
</tr>";
28
echo '</div>';
29
echo '</center>';
30
31
if ($result = $mysqli->query("SELECT * FROM Scoreboard"))
32
{
33
		while ($dat = $result->fetch_object())        
34
		{
35
			$Nombre = $dat->Nombre;
36
			$Ocupacion = $dat->Ocupacion;
37
			$Group = $dat->Group;
38
			$Dinero = $dat->Dinero;
39
			$Pais = $dat->Pais;
40
			$zk = $dat->ZombieKills;
41
			$ping = $dat->Ping;
42
              		echo "<tr>";
43
			echo "<td><center>".$Nombre."</center></td>";
44
                	echo "<td><center>".$Ocupacion."</center></td>";
45
               		echo "<td><center>".$Group."</center></td>";
46
               		echo "<td><center>".$Dinero."</center></td>";
47
               		echo "<td><center>".$zk."</center></td>";
48
               		echo'<td><center><img src="http://www.skype-emoticons.com/images/'.strtolower($Pais).'.png" style="width:20px;height:20px"></center></td>';
49
			echo "<td><center>".$ping."</center></td>";
50
              		echo "</tr>";
51
    	        }
52
}
53
54
echo "</table>";
55
 
56
$mysqli->close();
57
?>
58
</body>
59
</html>