betSOKO PHP 8.4 WebApp
=======================

1. Copy this folder to your PHP 8.4 web server (WAMP/XAMPP/cPanel).
2. Edit config.php:
   DB_HOST
   DB_NAME
   DB_USER
   DB_PASS
3. The app uses the existing users table for login.
4. Open login.php.

Functions
---------
- Login using phone/email + existing password hash.
- Dashboard totals.
- View all posted betslips.
- Mark a posted betslip successful or Failed.
- View selected betslips whose underlying betslip is successful.
- Mark payment PAID or PENDING (displayed as Not Paid).

Security
--------
- mysqli prepared statements for updates/login.
- CSRF protection on status-changing requests.
- Session regeneration on login.
- Output escaped with htmlspecialchars.

Database notes
--------------
- betslips.status enum is: available, canceled, successful, Failed.
- selectedslip.paystatus is varchar and current data uses PAID/PENDING.
- This package does not alter your database schema.
- For a production admin portal, use a dedicated admin/role table instead of allowing every app user to manage all records.
