<?php
$workspace_path = "c:\\Users\\User\\Documents\\Antigravity Projects\\Apperal Managment System -Vanila- PHP";
chdir($workspace_path);

require_once 'includes/db.php';

$id = 17; // The ID returned from the previous test
$invoice = fetch("SELECT * FROM production_invoices WHERE id = ?", [$id]);

if ($invoice) {
    echo "--- Raw DB Columns for Invoice ID {$id} ---\n";
    foreach ($invoice as $key => $val) {
        echo "{$key}: {$val}\n";
    }
} else {
    echo "Invoice ID {$id} not found.\n";
}
?>
