<?php
require_once __DIR__ . '/config/db.php';
$database = new Database();
$db = $database->getConnection();

$stmt = $db->prepare("UPDATE categories SET name = 'เสื้อ' WHERE name = 'เสื้อช็อปและเครื่องแบบ'");
$stmt->execute();

echo "<h3>Update category name to 'เสื้อ' successfully!</h3>";
echo "<p>Please delete this file (update_category.php) after running it.</p>";
?>
