EXPLORE PERAK - PHP + MYSQL DEMO

REQUIREMENTS
- XAMPP / Apache + MySQL
- PHP 7.4+ recommended

SETUP
1. Copy the entire student_demo_website folder into C:\xampp\htdocs\
2. Start Apache and MySQL in XAMPP.
3. Open phpMyAdmin: http://localhost/phpmyadmin
4. Choose Import and import: explore_perak_db.sql
5. Open: http://localhost/student_demo_website/index.php
6. Admin: http://localhost/student_demo_website/admin/login.php

ADMIN LOGIN
Username: admin
Password: admin123

DATABASE
Database: explore_perak_db
Tables: admins, destinations

ADMIN FEATURES
- Login / Logout
- View records in table
- Search records by name, category, or location
- Add record
- Edit record
- Delete record with confirmation

NOTE
Database connection is in db_connect.php. Default XAMPP setting uses root with empty password. Change it if your MySQL configuration is different.


NEW FEATURES
------------
1. Admin Reset Password: Dashboard > Reset Password.
2. Destination image upload in Add and Edit pages.
3. Supported image types: JPG, PNG, WEBP (maximum 2 MB).
4. Uploaded images are stored in /uploads.
5. Dashboard displays image thumbnails.

IMPORTANT FOR EXISTING DATABASE
If you imported an older version of the database, either re-import explore_perak_db.sql OR run:
ALTER TABLE destinations ADD image VARCHAR(255) DEFAULT NULL AFTER description;


SAMPLE IMAGES INCLUDED
Six local sample images are already included in uploads/. Import explore_perak_db.sql so the sample database records display them immediately.


GROUP PROFILE UPDATE
- profile.html now shows 3 group members.
- Member photos are stored in images/member1.jpg, images/member2.jpg and images/member3.jpg.
- Normal website destination images are also stored in images/.
- uploads/ is reserved only for images uploaded through the Admin Add/Edit Destination feature.
- Replace the three member JPG files to use actual student photos.


FIRST PAGE WEB BANNER
- A web banner section has been added at the top of index.php.
- The banner image is stored at images/web_banner.jpg (not uploads/).
- Recommended replacement size: 1920 x 650 pixels.
- To use your own banner, replace images/web_banner.jpg using the same filename.
- Banner text and Explore Destinations button can be edited directly in index.php.
