prepare( "INSERT INTO installations (client_name, address, technician_name, observations, voltage, phase_neutral_ground, breaker_output) VALUES (?, ?, ?, ?, ?, ?, ?)" ); $stmt->execute([$client_name, $address, $technician_name, $observations, $voltage, $phase_neutral_ground, $breaker_output]); $_SESSION['message'] = 'Installation registered successfully!'; $_SESSION['message_type'] = 'success'; } catch (PDOException $e) { error_log("Database error: " . $e->getMessage()); $_SESSION['message'] = 'Failed to register installation. Please try again.'; $_SESSION['message_type'] = 'danger'; } } header('Location: index.php'); exit;