i have set up users table and succesfully done all the inserts but i want give acess to users based on there roles. how can i do this???

Recommended Answers

All 3 Replies

add a extra field in your database named usergroup and set the user permission in it.
this will batter work for you.

One way is to have something in the database stating their user level (user, admin, moderator etc) then write a simple query to check that and display only the options available to them.

Check this system and familiarize with the techniques

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.