Im sure this is a simple solution for you guys, but im trying to just simply select a table, and order by values called "points". I am only trying to produce the first 5 rows. Here is what I have so far, and its not producing any results.
$invcheckquery = "SELECT name , points FROM guild ORDER BY points DESC LIMIT 5";
$invcheck = mysqli_query($con, $invcheckquery) or die("error code : invite already sent!");
echo "0";
while ($row = mysqli_fetch_array($invcheck))
{
echo ("\t");
echo ($row ['name']); // The number
echo ("\t"); // The number
echo ($row ['points']);
}