|
Getting Started Using phpMyCRUD is accomplished with just a few lines of code. First, you include a file that defines the database username and password, then include phpmycrud.php. Finally, create a new phpMyCRUD object with those database credentials. After a phpMyCRUD object has been created, set the permission and call dispatch(), then create the controls, links, and language menu. Note that the class never outputs anything to the screen, so you must 'echo' the results of the methods in order to display anything. Example 1: Basic CRUD (See it Live!) This is the simplest example of using phpMyCRUD. Field names are taken directly from the table structures, and all fields are displayed. The permission is set to 'crud' allowing Create, Read, Update and Delete.
|