Here is the code that is giving me the Warning
$query = mysqli_query($connection, $sql);
$uname_check = mysqli_num_rows($query);
What is the problem here ? Similar code elsewhere in the page is working.
Also, I am getting the following error in the next line of code:
mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in ~\index.php on line 47