<?php
// Quick fix for delivery user
$mysqli = new mysqli('localhost', 'root', '', 'webapppr_flax');

if ($mysqli->connect_error) {
    die("Connection failed: " . $mysqli->connect_error);
}

$result = $mysqli->query("UPDATE users SET user_type='buyer', role='delivery' WHERE id=10");

if ($result) {
    echo "✓ User ID 10 updated: user_type='buyer', role='delivery'\n";
} else {
    echo "✗ Update failed: " . $mysqli->error . "\n";
}

$mysqli->close();
