<?php 
class Cms_model extends CI_Model {
	public function _consruct(){
		parent::_construct();
 	}
	function save_help($data) {
	 $result = $this->db->insert('cms', $data); 
	 if($result) {
		 return "Success";
	 }
	 else {
	 	return "error";
	 }
	}
		
	 //  function get_completedbooking(){
	 // 	 $query = $this->db->where('status',5); 
		//  $query = $this->db->get('booking');
		//  $result = $query->result();
		//  return $result;
  //    }
  //    function get_cancelleddbooking(){
	 // 	 $query = $this->db->where('status',3); 
		//  $query = $this->db->get('booking');
		//  $result = $query->result();
		//  return $result;
  //    }

  //    function view_popup_customer($id){ 
		
		// $query = $this->db->where('id', $id);
		// //$query = $this->db->where('status',0);   
		// $query = $this->db->get('users');

		// $result = $query->row();

		// return $result;	    
  //    }


	 //  public function get_single_patient($id){
		//    $query = $this->db->where('id',$id);
		//    $query = $this->db->get('patient');
		//    $result = $query->row();
		//    return $result;  
	 //   }

}
?>