setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { die("Database connection failed: " . $e->getMessage()); } // Handle form submission if ($_SERVER['REQUEST_METHOD'] === 'POST') { $customer_name = $_POST['customer_name'] ?? ''; $customer_phone = $_POST['customer_phone'] ?? ''; $email = $_POST['email'] ?? ''; $address = $_POST['address'] ?? ''; $is_active = isset($_POST['is_active']) ? 1 : 0; // Insert into database $stmt = $pdo->prepare("INSERT INTO customers (name, phone, email, address, is_active) VALUES (?, ?, ?, ?, ?)"); $stmt->execute([$customer_name, $customer_phone, $email, $address, $is_active]); // Confirm insertion echo "Customer added successfully!"; } ?> IFECHIMOG Enterprise - Laundry
Loading...
heading-img

Welcome to the Dry Cleaning Company

Professional Cleaning Services for Home and Office

img
img Emergency? Call Us Now : 08143628792

Welcome to MOG Laundry, your trusted partner for all your laundry needs. We offer a range of services designed to make your life easier, from basic wash and fold to specialized stain removal. Our commitment to quality and convenience ensures your laundry is always handled with care and delivered swiftly.

  • Wash & Fold Laundry Service
  • Tough Stain Removal
  • Neatly Ironed & Well Packaged
  • Swift Response & Delivery

10+

years of experience

Dryclean Services

We Collect, Clean Laundry & Dry Cleaning.

Schedule a Pickup

Book Order
box
query("SELECT * FROM customers"); $customers = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach ($customers as $customer) { echo "Name: " . htmlspecialchars($customer['name']) . "
"; echo "Phone: " . htmlspecialchars($customer['phone']) . "
"; echo "Email: " . htmlspecialchars($customer['email']) . "
"; echo "Address: " . htmlspecialchars($customer['address']) . "
"; echo "Active: " . ($customer['is_active'] ? 'Yes' : 'No') . "

"; } ?>