<?php
require_once __DIR__ . '/../includes/db.php';

$field = $_GET['field'] ?? '';

$stmt = $pdo->prepare("
  SELECT preset_name, value
  FROM bol_field_presets
  WHERE field_key = ?
  ORDER BY preset_name
");
$stmt->execute([$field]);

echo json_encode($stmt->fetchAll(PDO::FETCH_ASSOC));
