I’m not sure where is the problem is to fix this:
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
Here is the function:
public function checkUS($US){
if(isset ($_POST['submit'])){
$detailsCheck = mysqli_query($this->objDbConn,"SELECT Username FROM * WHERE Username='$US'");
$numRows = mysqli_num_rows($detailsCheck);
if(!$numRows >=1){
echo "<span id='errors'>This username is been use</span>";
return false;
}else{
return true;
}
}
}