OverviewThe phpMyCRUD tutorial demonstrates how to create a basic phpMyCRUD object (a database table) and transform it into a custom administration panel and input forms that can be used to accept data from your site visitors. Source code examples and
live demos show how easy it is to use phpMyCRUD.
1: Basic CRUD (
Live Demo |
View Source)
Create a phpMyCRUD object and display it. A phpMyCRUD object is simply a database table with methods for displaying and editing it. In this example, the permissions are set to 'crud' allowing: create, read, update and delete actions. Altering of table and field structures is not allowed on these demos due to the probability of breaking the tutorial. By default, ALL fields are shown in the list view and on the insert/update forms. Field names are displayed as-is.
2: Column Headings (
Live Demo |
View Source)
Hides columns that are not necessary to display to the user. Changes the column headings to more user-friendly names on the list view and insert/update forms.
3: Transformations (
Live Demo |
View Source)
Displays some fields as drop-down Select Menus, Images, and Hyper links. The forms are now presentable on your website, complete with required field handling.
4: Templating (
Live Demo |
View Source)
Use custom templates to display records in a custom format rather than standard columns and rows.
5: Permissions (
Live Demo |
View Source)
Demonstrates a read-only version of the table. ALL editing controls have been omitted. The end result is a nicely formatted view of the table.