- PHP 7.4+ with MySQLi extension
- MySQL / MariaDB
- Apache or Nginx with mod_rewrite
- A local server like XAMPP, WAMP, or Laragon
- Open phpMyAdmin or your MySQL client.
- Import
database.sqlto create they2j_funeraldatabase with all tables and seed data. - Default admin credentials:
- Username:
admin - Password:
admin123
- Username:
Edit includes/db.php and update:
define('DB_HOST', 'localhost'); // your DB host
define('DB_USER', 'root'); // your DB username
define('DB_PASS', ''); // your DB password
define('DB_NAME', 'y2j_funeral'); // leave as-isy2j/
├── index.php ← Home (casket listing)
├── reserve.php ← Reservation form (2-step)
├── contact.php ← Contact info
├── css/
│ └── style.css
├── images/
│ ├── oak.png ← Upload your casket images here
│ ├── metal.png
│ ├── mahogany.png
│ └── logo.png ← Y2J logo
├── includes/
│ ├── db.php
│ └── nav.php
├── admin/
│ ├── login.php ← Admin login
│ ├── dashboard.php ← Stats overview
│ ├── reservations.php← Manage & approve reservations
│ ├── deliveries.php ← Track deliveries
│ ├── sales.php ← Sales reports
│ ├── caskets.php ← Add/edit/delete caskets
│ ├── logout.php
│ ├── auth.php ← Session guard
│ └── sidebar.php
└── database.sql
Place your casket images and logo inside the images/ folder:
images/oak.pngimages/metal.pngimages/mahogany.pngimages/logo.png
- User site:
http://localhost/y2j/ - Admin panel:
http://localhost/y2j/admin/login.php
| Feature | Description |
|---|---|
| Dashboard | Overview stats: total reservations, pending, approved, delivered, revenue |
| Reservations | View all reservations, filter by status, approve/reject/mark delivered |
| Deliveries | Focused view of approved orders, one-click mark as delivered |
| Sales Report | Monthly revenue breakdown + per-casket sales summary |
| Manage Caskets | Add new caskets, update stock levels, delete caskets |
The default admin password hash uses PHP's password_hash() with PASSWORD_BCRYPT.
To change the password, run this in PHP:
echo password_hash('your_new_password', PASSWORD_DEFAULT);Then update the hash in the admins table.