# PHP Admin Panel (CRUD) for your tables

## 1) Requirements
- PHP 8.0+ (works on 7.4+ with minor adjustments)
- MySQL/MariaDB

## 2) Install
1. Copy the project folder to your server.
2. Import your existing tables (the ones you shared).
3. Run `sql/admin_users.sql` to create the admin login table + default admin user.
4. Edit `app/config.php` with your DB credentials.

## 3) Run locally
From the project root:

```bash
php -S localhost:8000 -t public
```

Then open:
- http://localhost:8000

## 4) Default admin login
- username: `admin`
- password: `admin123`

Change password by updating `tbl_admin_users.password_hash` using PHP `password_hash()`.

## 5) Notes about your schema
- Your table IDs are `int NOT NULL` but do not show `PRIMARY KEY` or `AUTO_INCREMENT`. This panel therefore requires entering the ID on create.
- Your `tbl_chapter_committee_member` definition references `chapter_id` as a foreign key, but that column is not present in the column list. The panel stores the chapter `Code` in `tbl_chapter_committee_member_chapter`.

## 6) Uploads
Image uploads are stored in `public/uploads/<table>/` and the relative path is saved to the DB.

