# Winners Table Media — Booking & Sponsorship App

A simple PHP + MySQL + Bootstrap 5 site with two forms:

- **cypher.php** — artists book a slot in the cypher
- **sponsor.php** — brands request a sponsorship package

Every submission is saved to MySQL **and** emailed to `winnerstablemedia@gmail.com`.

## 1. Upload

Upload all files to your web host's `public_html` (or any folder served as web root).

## 2. Create the database

In **cPanel → MySQL Databases** (or phpMyAdmin):

1. Create a database, e.g. `wtm_db`
2. Create a user and add it to the database with ALL PRIVILEGES
3. Open phpMyAdmin → select the database → **Import** → choose `sql/schema.sql`

## 3. Configure

Edit **includes/config.php** with your DB credentials:

```php
define('DB_HOST', 'localhost');
define('DB_NAME', 'wtm_db');
define('DB_USER', 'your_user');
define('DB_PASS', 'your_password');
define('NOTIFY_EMAIL', 'winnerstablemedia@gmail.com');
```

## 4. Test

Visit `https://yourdomain.com/` → submit a test booking → check Gmail.

> If emails don't arrive, your host probably blocks PHP `mail()`.
> Easiest fix: install **PHPMailer** and use your Gmail SMTP credentials,
> or use a free SMTP service (Brevo, Mailtrap, SendGrid).

## 5. Local development

You can run locally with **XAMPP** or **Laragon**:

1. Put the folder inside `htdocs/`
2. Import `sql/schema.sql` via phpMyAdmin
3. Open `http://localhost/wtm-app/`

## 6. Turning it into a mobile / desktop app

The site is fully responsive (Bootstrap 5), so on mobile it already feels like an app.
To wrap it as a real installable app, the cheapest path is **PWA**:

- Add a `manifest.json` and a tiny service worker
- Users tap "Add to Home Screen" on iPhone/Android — instant mobile app
- The same site can be wrapped with **Electron** for a desktop installer

Happy shipping! 🎤
