prepare("UPDATE bni_groups SET name = :name, city = :city, active = :active, display_order = :display_order WHERE id = :id"); $stmt->bindParam(':id', $id, PDO::PARAM_INT); $stmt->bindParam(':name', $name); $stmt->bindParam(':city', $city); $stmt->bindParam(':active', $active, PDO::PARAM_INT); $stmt->bindParam(':display_order', $display_order, PDO::PARAM_INT); $stmt->execute(); $_SESSION['success_message'] = 'BNI Group updated successfully!'; } catch (PDOException $e) { $_SESSION['error_message'] = 'Error updating BNI group: ' . $e->getMessage(); } } header('Location: bni_groups.php'); exit;