Welcome Guest, Not a member yet? Register   Sign In
How not to get selected data
#1

(This post was last modified: 07-06-2017, 02:57 AM by wolfgang1983.)

Hi, I have my code below I would like to be able to use 'users.*' to be able to get the users data how ever is there a way in select not to get the password but gets the all of other data.

Currently it gets all users data include password. I don't want it do get password.

PHP Code:
public function get_user($column ''$id '')
{
    
$this->db->select('users.*, user_groups.*');
    
$this->db->from($this->db->dbprefix 'users''LEFT');
    
$this->db->join('user_groups''user_groups.user_group_id = users.user_group_id''LEFT');
    
$this->db->where("users.user_id"$id);
    
$user_query $this->db->get();

    return 
$user_query->row_array();
        

There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
How not to get selected data - by wolfgang1983 - 07-06-2017, 02:56 AM
RE: How not to get selected data - by InsiteFX - 07-06-2017, 03:07 AM
RE: How not to get selected data - by rtenny - 07-06-2017, 04:31 AM
RE: How not to get selected data - by PaulD - 07-06-2017, 10:12 AM
RE: How not to get selected data - by karman - 07-06-2017, 11:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB