Created
April 12, 2017 08:55
-
-
Save Rameshwar-ghodke/43a9e26b66e1dc6f79d53b9671455589 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function patient_details_search() | |
{ | |
$patient_id=$_POST['patient_id']='1'; | |
$first_name=$_POST['first_name']="parimal"; | |
$phone=$_POST['phone']='9527070792'; | |
$query = $this->db->query("SELECT * from tbl_patient_details where id ='".$patient_id."' or first_name ='".$first_name."' or phone ='".$phone."' and is_deleted='N'"); | |
//echo $this->db->last_query(); | |
if($query->num_rows()>0) | |
{ | |
//echo "Pass"; | |
echo json_encode($query->result()); | |
} | |
else | |
{ | |
echo "fail"; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment