This is the Top Ad Block. Hidden via CSS for phpMyCRUD site
5. Permissions
Permissions control which action(s) can be performed on a particular table. A default permission value is set in phpmycrud.php and is used for all tables unless the permission is specifically changed before calling dispatch().

If you set the default permission to 'cruda', you would need to lower the permissions on any table you don't want to have full admin permissions. Alternately, if you set the default permission level to '' (an empty string), then you would need to increase the permission level to at least 'r' in order to view any tables. Either way, permissions can be individually changed on a table-by-table basis as needed by your application.

Permission   AllowsURL action (act)
cCreating new recordsinsert
rReading records (browse)view
uUpdating existing recordsupdate
dDeleting recordsdelete
aAltering table structures, indexes    and all other operationsalter, ops, query


Example 5: Read Only (See it Live!)
Permission 'r' allows only the 'view' action. The 'Actions' column, checkboxes and editing controls are automatically hidden on read-only tables, because there is no need for them.





<< Prev Example

© 2007-2011 RGB World, Inc. All rights reserved.