Hide & Seek Statistiken

[insert_php]
$servername = “db.ravecraft.de”;
$username = “stats”;
$password = “survey”;
$dbname = “p_whazup”;
$kd_rundung = 2; // KD-Value, Stellen nach dem Komma

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die(“Connection failed: ” . $conn->connect_error);
}

$sql = “SELECT player_name, hiders_killed, seekers_killed, exp, wins, karma FROM p_whazup.has_ where exp > 0 order by exp desc limit 20”;
$result = $conn->query($sql);
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;

if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {

echo “

“;
}
} else {
echo “0 results”;
}

$conn->close();
echo “

Avatar Player Hiders_kill Seekers_kill XP Wins Karma
“;
echo ““;
echo “
“. $row[“player_name”];
echo ”
“. $row[“hiders_killed”];
echo ”
“. $row[“seekers_killed”];
echo “
” . $row[“exp”];
echo “
” . $row[“wins”];
//** echo ”
” . round ($row[“killdeath”],$kd_rundung);**//
echo ”
” . $row[“karma”] . “

“;
[/insert_php]