This module demonstrates how to implement a sortable database grid in PHP + MySQL.
Users can click on column headers (Name
, Age
, GPA
) to sort data in ascending or descending order.
- Open phpMyAdmin at http://localhost/phpmyadmin.
- Click the Import tab from the top menu.
- Select the file db.sql from this project folder.
- Click Go.
- This will create:
- A database named
school
- A table named
students
- Sample data records
- A database named
Place the project folder in your XAMPP htdocs
directory: