Welcome Guest, Not a member yet? Register   Sign In
Display dynamic menu and menu display rolewise login in Codeigniter
#3

(07-23-2018, 01:28 AM)Pertti Wrote:
PHP Code:
$categories explode(','$user->cid);
// $categories = [1, 2, 6]

$q $this->db
    
->select('*')
 
   ->where_in('cid'$categories)
 
   ->get('category'); 

Is that what you mean?

i did not understand
Reply


Messages In This Thread
RE: Display dynamic menu and menu display rolewise login in Codeigniter - by jaydevvara - 07-23-2018, 02:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB