Jump to content

Recommended Posts

Well, if a user has permission to a database the easiest way to show it would be;

 

Go to the users(or w.e the name is in ur DB) table, add a column named "permission", VARCHAR 10 not null. This should be added to the table when they sign-up or you can do it manually.

 

So it should look something like this to call the permission from the table.

 

<?php
mysql_query("SELECT `permission` FROM `users` WHERE `user`='(session or cookie variable)'") or die (mysql_error());
?>

 

The result from the would be;

 

Username-

Permission- yes/no

etc-

etc-

 

Thats about it. Hope this helped you a little ;)!

 

--

DJ

well, thats not quite what i had in mind. i'm trying to develop a mysql frontend that allows you to easily add/delete users, databases, and add users to databases.  i'd really like to show the permissions that each user has on each database much like cPanel's MySQL interface.  This information is held in the mysql database and it wouldnt be feasible to add an extra column to every database to show whether a user has permissions, besides, i'd like to show exactly what grants that user has.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.