i am preparing a page for giving rights to users who have logged in

need help in code

in my user database i have a table having columns items, add, edit, view ,delete

add, edit, view ,delete is boolean and items contains the pages of the application like

ITEM ADD EDIT DELETE VIEW

stock checked checked checked unchecked
purchase unchecked unchecked checked unchecked
sale unchecked unchecked unchecked unchecked
abc unchecked unchecked unchecked unchecked
Enquiry unchecked unchecked unchecked unchecked
Reminder unchecked unchecked unchecked unchecked
Export unchecked unchecked unchecked unchecked
Print unchecked unchecked unchecked unchecked


and so on....

suppose user1 logs in and he has the above checked rights , i need to disable the rest unchecked controls.

at presnt i have coded using session in the login page, but i am not able to achieve as needed.