<?php
require_once __DIR__ . '/../config/db.php';
try {
    $pdo = getConnection();
    echo "Connection successful!\n";
    $stmt = $pdo->prepare("UPDATE productos SET NombreComercial = 'Panadol Test' WHERE id = 1");
    $stmt->execute();
    echo "Update successful!\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
