This tutorial is about generating PHP Bootstrap CURD for database table or view.
This tutorial requires following create web php project first
The last step of the previous tutorial of create web PHP project, was saving our project.
- Press on the arrow in the generate list to open the list.
- Select PHP/Web generator and hit it.
Sohag Builder will generate one directory and five files for each class to manipulate the database table data as the following.
items directory containing the following files.
This file contains code to view all table records in a bootstrap grid.
This file contains HTML form and php code to insert a new record in the database table.
This file contains HTML form and php code to edit an existing record in the database table.
This file contains php code to remove a record from database table.
This file contains code to view a record details in a bootstrap grid.
The generated code uses PDO prepared statement to prevent SQL injection.