Welcome Guest, Not a member yet? Register   Sign In
where condition role.
#1

Hi Coders,

i have user table with role, ADMIN AND USER now
i have a one page, that if the user login as user, he/she can view his own work while if the user login as admin he can view all user works?

any body how to implement it.


wrong condition....


PHP Code:
$this->db->where('users.fname',$this->session->userdata['logged_in']['fname'] AND 'users.role','admin'); 
 
Reply


Messages In This Thread
where condition role. - by jaysondotp - 01-07-2015, 10:28 PM
RE: where condition role. - by Jamie - 01-08-2015, 01:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB