I wrote a script and it is not fetching data, I can't see anything wrong with it.
My script is:
<?php
$conn = mysqli_connect("*****", "*****", "*****", "*****");
$sql = "SELECT * FROM points ORDER BY points DESC LIMIT 3;";
$result = mysqli_query($conn, $sql);
$resultCheck = mysqli_num_rows($result);
if ($resultCheck > 0) {
while ($row = mysqli_fetch_assoc($result)) {
echo $row['players'] . "<br>";
}
}
?>