Jump to content

PHP Set User Permissions


kamal213

Recommended Posts

Hi guys,

 

I have a customer management script were only logged user can view and perform tasks such as add customers and book appointments.

 

Currently only certain users can do certain thing e.g. some users can add customers and book appointments and other can only add customers or only book appointments.

What I did was create two table in mysql 'customer users' and 'appointment users', so users who can do all activities are have their username and password in both table, those who can do only one activity have log details save on only their approtiate tables i.e  'customer users' or 'appointment users'.

 

The problem is I have to go to the datebase all the time if I want to decide which user does what, I was wondering if you knew a way I can do it on my system, maybe like creating a control panel and changing the user settings from there instead.

 

Look forward to your help and advise, Thanks alot.

Link to comment
https://forums.phpfreaks.com/topic/241691-php-set-user-permissions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.