Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: text/html; charset=utf-8');
- $servername = "localhost";
- $username = "seulogin";
- $password = "suasenha";
- $dbname = "nomedobanco";
- $mysqli = new mysqli($servername, $username, $password, $dbname);
- $mysqli->set_charset("utf8");
- $dogid = $_POST["Dog_id"];
- $hash = $_POST["hash"];
- $sql3 = mysqli_query("SELECT * FROM ranking ORDER BY score DESC LIMIT 10") or die("Could not allocate information!");
- $rank = 0;
- while($row = mysqli_fetch_array($sql3)) {
- $rank++;
- echo $row['user']. ";" .$row['score'] .";";
- }
- $mysqli->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement