# 🚀 QUICK START - Upload to cPanel NOW

## Files to Upload (5 Critical Files)

Upload these from `c:\xampp\htdocs\ecoms\` to cPanel `/public_html/ecoms/`:

### 1. `db_config.php`
- **What:** Database configuration
- **Why:** Now connects to maham.usadomainhosting.com instead of localhost
- **Status:** ✅ Updated

### 2. `config/image_config.php`
- **What:** Image helper functions
- **Why:** New getCarouselImageUrl() function for image paths
- **Status:** ✅ Updated

### 3. `index.php`
- **What:** Homepage
- **Why:** Uses new image helpers for carousel/featured categories
- **Status:** ✅ Updated

### 4. `admin_seo_manager.php`
- **What:** Admin SEO management
- **Why:** Now uses db_config.php instead of hardcoded credentials
- **Status:** ✅ Updated

### 5. `data/carousel.json`
- **What:** Category carousel data
- **Why:** Image paths updated to /ecoms/uploads/ format
- **Status:** ✅ Updated

### 6. `uploads/shoes.webp` (NEW)
- **What:** Image file
- **Why:** Missing image file that carousel references
- **Status:** ✅ Created

---

## Upload Method

### Option A: FTP
1. Open FTP client
2. Connect to cPanel FTP
3. Upload files from your local `/ecoms/` folder to `/public_html/ecoms/`

### Option B: cPanel File Manager
1. Log in to cPanel
2. Open File Manager
3. Navigate to `/public_html/ecoms/`
4. Upload files

### Option C: All at Once
Upload entire `/ecoms/` folder (includes all updates)

---

## Test After Upload

1. Visit: `https://maham.usadomainhosting.com/ecoms/`
   - Should see homepage with category images

2. Visit: `https://maham.usadomainhosting.com/ecoms/admin_seo_manager.php`
   - Should load without "database not connected" error

3. Check images load:
   - Featured categories should display
   - Carousel should display
   - No 404 errors in browser console (F12)

---

## What This Fixes

✅ Category images now show on cPanel  
✅ Carousel images now show on cPanel  
✅ Admin SEO manager now connects on cPanel  
✅ Both localhost and cPanel work identically  

---

## No Further Changes Needed

Just upload these 5-6 files and test. Everything else is already working!

---

**Time to Deploy:** ~5 minutes  
**Risk:** LOW (only 6 file changes)  
**Rollback:** Easy (just re-upload old files if needed)
