need php help. getting the error message when attempting to connect to mysql database.. below is my source code around line 39 that its complaining about:
// checks username does not exist
public function checkUsername($username) {
$sql = "SELECT username FROM Registration WHERE username = '$username'";
$this->result = mysqli_query($this->conn, $sql);
if (mysqli_num_rows($this->result <= 0) {
return false;
}
return true;