• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error creating in my controller

#1
Code:
controller
**********

$this->load->model('user_model');          
       $data['appdetails_show'] = $this->user_model->getapp();

Model
Code:
public  function getapp(){
 $response = array();  

 $regno = $this->session->userdata('username');

 $this->db->select('*');
 $this->db->from('appdetpayment');
 $this->db->where('appdetpayment.regno',$regno);  
 $this->db->order_by('appdetpayment.appno');
 $query = $this->db->get();
 return $query->result_array();
 }
Reply


Messages In This Thread
error creating in my controller - by kvanaraj - 09-19-2018, 12:13 AM
RE: error creating in my controller - by Pertti - 09-19-2018, 01:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.