This is a simple CRUD (Create, Read, Update, Delete) application built using PHP, MySQL, and Bootstrap.
It allows you to manage student records with an easy-to-use web interface.
- ➕ Add new student
- 📄 View all students
- ✏️ Update student data
- ❌ Delete student
- 🎨 Clean UI using Bootstrap
- 🔌 MySQL database connection via MySQLi
- 🔄 Redirect messages for success/error actions
| Technology | Purpose |
|---|---|
| PHP | Backend logic |
| MySQL | Database storage |
| Bootstrap | Styling |
| HTML/CSS | Frontend |
| XAMPP | Local server |
Your folder looks like this:
CRUD_APP/
│── dbconnection.php # Database connection file
│── delete_page.php # Delete logic
│── footer.php # Footer layout
│── header.php # Header + navigation bar
│── index.php # Displays all students
│── insert_data.php # Insert student logic
│── update_page_1.php # Update student page
│── style.css # Custom styling (optional)
Each file plays a specific role:
Handles MySQL connection using mysqli_connect().
Shows all data from the database in a Bootstrap table.
Processes new student form and inserts data into MySQL.
Loads selected student info, updates record when submitted.
Deletes the selected student record.
Reusable layout components for cleaner code.
Your custom styling (optional).
git clone https://github.com/your-username/crud-app-php.gitC:/xampp/htdocs/CRUD_APP/
Open phpMyAdmin, then run:
CREATE DATABASE crud_app;
USE crud_app;
CREATE TABLE students (
id INT AUTO_INCREMENT PRIMARY KEY,
firstName VARCHAR(100),
lastName VARCHAR(100),
age INT
);http://localhost/CRUD_APP/
insert_data.php adds student to DB.
index.php displays all student data.
update_page_1.php loads selected student → updates them.
delete_page.php removes student from DB.
Delete
- Validation messages
- Search bar
- Pagination
- Login system
- Improved UI with custom CSS
Raj Chauhan Project created with passion ❤️ Portfolio: https://itsdevrajchauhan.netlify.app
This project is fully open-source. Feel free to use or modify it for your learning.


