Welcome Guest, Not a member yet? Register   Sign In
Session ID
#5

(This post was last modified: 01-29-2016, 07:06 PM by freddy.)

well this is mine, please configuration with yours ya


//here is controller
Code:
$id_user=$this->session->userdata('id_user'); //here is my id which is store in variable
$data['images']=$this->model_register->getimagestopright($id_user); //throw your varibale session in this model

//here is model
Code:
function getimagestopright($id_user)
{
   $this->db->where('id_user', $id_user);
   $this->db->select("*");
   $this->db->from("li_user");
   return $this->db->get();
}

Hope this help you
Reply


Messages In This Thread
Session ID - by morocho1979 - 01-29-2016, 07:26 AM
RE: Session ID - by pdthinh - 01-29-2016, 07:38 AM
RE: Session ID - by morocho1979 - 01-29-2016, 08:05 AM
RE: Session ID - by josepostiga - 01-29-2016, 09:04 AM
RE: Session ID - by freddy - 01-29-2016, 07:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB