Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Rameshwar-ghodke/43a9e26b66e1dc6f79d53b9671455589 to your computer and use it in GitHub Desktop.
Save Rameshwar-ghodke/43a9e26b66e1dc6f79d53b9671455589 to your computer and use it in GitHub Desktop.
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