prepare($sql); $stmt->execute([$name, $company_name, $email, $phone, $status, $color, $notes]); header('Location: clients.php?success=client_added'); exit; } catch (PDOException $e) { // In a real app, log this error. header('Location: clients.php?error=db_error'); exit; } } ?>