<?php
require 'backend/config.php';

$result = $conn->query('SELECT id, table_number, notes, status FROM restaurant_tables WHERE status="merged" OR table_number LIKE "%+%" LIMIT 5');

while ($row = $result->fetch_assoc()) {
    echo "ID: " . $row['id'] . ", Table: " . $row['table_number'] . ", Status: " . $row['status'] . "\n";
    echo "Notes: " . $row['notes'] . "\n";
    echo "Notes (with special chars): " . var_export($row['notes'], true) . "\n";
    echo "---\n";
}
