mosmartin Posted October 4, 2010 Share Posted October 4, 2010 Hello fellow PHP Freaks Is there a way to assign mysql access privileges using a php script? Maybe when your registering a user and assign them a role, depending on the role, they get certain privileges on the db... I need help. Thank you in advance. Link to comment https://forums.phpfreaks.com/topic/215123-how-to-create-a-php-form-that-assigns-users-mysql-privileges-and-permissions/ Share on other sites More sharing options...
chintansshah Posted October 4, 2010 Share Posted October 4, 2010 Can you please explain in detail, can you post your code, have you tried any mysql functions in php? boss, it's very risky to give grant permission from php? Link to comment https://forums.phpfreaks.com/topic/215123-how-to-create-a-php-form-that-assigns-users-mysql-privileges-and-permissions/#findComment-1118882 Share on other sites More sharing options...
mosmartin Posted October 5, 2010 Author Share Posted October 5, 2010 Hello Chintansshah, I have managed to create users with privileges from MySQL but I was wondering if it's possible to do so from a web interface. E.G. have an interface with check boxes that assigns certain privileges to users as they are being registered. Or how does someone create a role and assign it privileges so that when a user is registered under that role, they automatically get the privileges assigned to that role. Link to comment https://forums.phpfreaks.com/topic/215123-how-to-create-a-php-form-that-assigns-users-mysql-privileges-and-permissions/#findComment-1119181 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.