You are on page 1of 1

Laboratory Activity#4

Create a CRUD application using PHP, MySQL, Bootstrap5 and Datatables.

1. Create the table BookInfo with the following fields

id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,


isbn VARCHAR(12) NOT NULL,

title VARCHAR(100) NOT NULL,


classification VARCHAR(25) NOT NULL,

date_acquired DATE NOT NULL,


copies INT NOT NULL,

piblisher VARCHAR(50) NOT NULL


2. Create a PHP script in order to connect to the MySQL database server.

Name it as "config.php". It will be later be included in other pages using


the PHP require() function. Place all the credentials according to your

MySQL server setting.


3. Build Create, Read, Update, Delete (with confirmation to remove it from

the database) and search functionality of the application integrating what


we’ve discussed.

4. Creating the Error Page and name it “error.php”. If the id (field) is already
deleted (from the database) or could not be found in the database, it will

be redirected you this page.

NOTE: Use appropriate UI control aside from the textbox.

You might also like