21 lines
423 B
PHP
Executable File
21 lines
423 B
PHP
Executable File
<?php
|
|
|
|
if (!defined('BASEPATH'))
|
|
exit('No direct script access allowed');
|
|
|
|
class Addcaregiver_model extends CI_model {
|
|
|
|
function __construct() {
|
|
$this->load->database();
|
|
|
|
}
|
|
function checkEmail($email){
|
|
$result=$this->db->get_where('users', array('email' => $email))->row();
|
|
if($result){
|
|
return false;
|
|
}else{
|
|
return true;
|
|
}
|
|
|
|
}
|
|
} |