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"; ?> <?php echo htmlspecialchars($page_title); ?> - SecureLife

Application #

← Back to Dashboard

Details

Status:

Personal Information

Full Name:

Email:

Phone:

Submitted At:

Insurance Details

Insurance Type: