Commit 2eb6ea11 by Jansa Jose

app feedback

parent 218f07f7
...@@ -9,6 +9,7 @@ class Appfeedback_model extends CI_Model { ...@@ -9,6 +9,7 @@ class Appfeedback_model extends CI_Model {
function get_doctor_feedback(){ function get_doctor_feedback(){
$this->db->select('tbl_doctors.name,tbl_app_feedback.*'); $this->db->select('tbl_doctors.name,tbl_app_feedback.*');
$this->db->join('tbl_doctors','tbl_doctors.id = tbl_app_feedback.doctor_id'); $this->db->join('tbl_doctors','tbl_doctors.id = tbl_app_feedback.doctor_id');
$this->db->group_by('tbl_app_feedback.id');
$result = $this->db->get_where('tbl_app_feedback',array('doctor_id !=' =>'0'))->result(); $result = $this->db->get_where('tbl_app_feedback',array('doctor_id !=' =>'0'))->result();
if($result){ if($result){
return $result; return $result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment