This project is a simple PHP application to manage students and classes in a school. It allows users to add, view, edit, and delete students and classes. The project uses MySQL for the database and Bootstrap for styling.
- Add, view, edit, and delete students.
- Add, view, edit, and delete classes.
- Navigation bar for easy access to different pages.
- Modal for editing classes.
- PHP >= 7.3
- MySQL
- XAMPP (or any other local server with PHP and MySQL)
- Git
-
Clone the repository
git clone https://github.com/yourusername/school_demo.git cd school_demo
-
Set up the database
- Open phpMyAdmin and create a database named school_db.
- Import the provided SQL file (
school_db.sql
) to create the necessary tables.
- Configure the project
- Ensure XAMPP (or your local server) is running.
- Place the project folder (
school_demo
) inside thehtdocs
directory of XAMPP. - Edit the
db.php
file and update the database credentials if necessary.
- Run the project
- Open a web browser and navigate to http://localhost/school_demo.
index.php
: Main page displaying the list of students.classes.php
: Page for managing classes.create.php
: Page for adding new students.edit.php
: Page for editing student details.view.php
: Page for viewing student details.db.php
: Database connection file.delete.php
: Script for deleting students.delete_class.php
: Script for deleting classes.edit_class.php
: Script for editing classes.uploads/
: Directory to store uploaded images.school_db.sql
: SQL file to set up the database.
You can see a live demo of the project here.
- Ravi Raj