What is the most practical way to display items based in each user level?
Posted on 2016-09-15
I'm trying to figure out how to build a menu that will show more or less elements based on each user level in PHP.
I'm currently naming user levels in the DB as "Admin", "User", "Special" and so on. What I need is for the Admin to see all elements, the user to see some elements and so on. I could do lots of IF statements but maybe there's a quick way to do it in a function or something?
Thanks in advance!