How can i apply Role based Access control in php ..........

Recommended Answers

All 2 Replies

By "role based access control" do you mean different user levels? For example on a forum you could have administrator, moderator, standard user etc.

for role base access control you have to set a role field in you db

like:
id,
name,
password,
role,
status

and on login time you have to match the role also

hope this gives you an idea to solve your prob.

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.