I want to check if posted username is exist in db with email address or not. How to check that?
public function check_all($username)
{
$check = $this->db->where("username","email", $username)->get("users");
if($check->num_rows() > 0) {
return false;
} else {
return true;
}
}