<?php
/**
 * Script: markWasabiComplete.php
**/
error_reporting(E_ALL);
ini_set('display_errors', 1);

require_once("common.php");
require_once("function.php"); // CRITICAL: This provides update_row()

// Double check the table name here. Is it bonstmedia2 or bonstmedia3?
$sql = "UPDATE `bonstmedia3` SET `Wasabi` = 1 WHERE `resize_image` = 1 AND `Wasabi` = 0";

$result = update_row($sql);

if ($result) {
    echo "Successfully updated Wasabi flags.";
} else {
    echo "Database update failed or no rows matched the criteria.";
}
?>