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!"; } ?>
Welcome to the Dry Cleaning Company
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.
Dryclean Services
Schedule a Pickup