exec($sql); } catch (PDOException $e) { // For now, we'll just die on a DB error. In a real app, handle this gracefully. die("Database setup failed: " . $e->getMessage()); } $success_message = ''; $error_message = ''; if ($_SERVER["REQUEST_METHOD"] == "POST") { $customer_name = trim($_POST['name']); $customer_email = trim($_POST['email']); $customer_phone = trim($_POST['phone']); $appliance_type = trim($_POST['appliance']); $issue_description = trim($_POST['issue']); if (empty($customer_name) || empty($customer_email) || empty($appliance_type)) { $error_message = "Please fill in all required fields (Name, Email, Appliance Type)."; } elseif (!filter_var($customer_email, FILTER_VALIDATE_EMAIL)) { $error_message = "Invalid email format."; } else { try { $sql = "INSERT INTO requests (customer_name, customer_email, customer_phone, appliance_type, issue_description) VALUES (:name, :email, :phone, :appliance, :issue)"; $stmt = $pdo->prepare($sql); $stmt->bindParam(':name', $customer_name); $stmt->bindParam(':email', $customer_email); $stmt->bindParam(':phone', $customer_phone); $stmt->bindParam(':appliance', $appliance_type); $stmt->bindParam(':issue', $issue_description); $stmt->execute(); $success_message = "Thank you! Your service request has been submitted. We will get back to you shortly."; } catch (PDOException $e) { $error_message = "Error submitting request: " . $e->getMessage(); } } } $project_name = htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'Appliance CRM'); $project_description = htmlspecialchars($_SERVER['PROJECT_DESCRIPTION'] ?? 'CRM for appliance service requests.'); $project_image_url = htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?> <?= $project_name ?>

Appliance Repair Made Easy

Fast, reliable service for your TV, A/C, and Washing Machine. Book a technician today!

Book a Service

Our Services

We specialize in the installation and repair of:

Televisions

Screen repairs, sound issues, smart TV setup, and more.

Air Conditioners

Cooling problems, regular maintenance, and new installations.

Washing Machines

Drum issues, water leaks, and electronic faults.

Submit a Service Request