Application #
← Back to DashboardDetails
Status:
Personal Information
Full Name:
Email:
Phone:
Submitted At:
Insurance Details
Insurance Type:
prepare("SELECT * FROM subscriptions WHERE id = :id"); $stmt->bindParam(':id', $_GET['id'], PDO::PARAM_INT); $stmt->execute(); $subscription = $stmt->fetch(PDO::FETCH_ASSOC); if (!$subscription) { $error_message = "Application not found."; } } catch (PDOException $e) { $error_message = "Database error: " . $e->getMessage(); } } function get_specific_coverage_details_html($sub) { $type = $sub['insuranceType'] ?? 'N/A'; $output = ''; switch ($type) { case 'Car': $output .= "
Car Make: " . htmlspecialchars($sub['carMake']) . "
"; $output .= "Car Model: " . htmlspecialchars($sub['carModel']) . "
"; $output .= "Year of Manufacture: " . htmlspecialchars($sub['carYear']) . "
"; break; case 'Health': $output .= "Number of Dependents: " . htmlspecialchars($sub['healthDependents']) . "
"; break; case 'Life': $output .= "Coverage Amount: $" . number_format($sub['lifeCoverage'], 2) . "
"; break; case 'Home': $output .= "Property Type: " . htmlspecialchars($sub['homeType']) . "
"; break; } return $output; } // --- Page Setup --- $page_title = "Application Details"; ?>Status:
Full Name:
Email:
Phone:
Submitted At:
Insurance Type: