Hi all.. im now building a web-system using php..and i have 4 groups of users
1- G1
2- G2
3- G3
4- G4
in my db, those are in my table called "u_userGroup" and for my entity is "groupCode".
so, these 4 groups have different privileges to each page..
G1 can access to all page, G2 and G3 can add,view,list,edit, G4 only can add and view...
i know that i have to do the "if else" thing at the top of each page, but im not sure how to do it...
can someone help me..