Функция за SQL Server 2008 или по-нов
function hasEquippedItems($name) {
$inventoryBinary = mssql_fetch_row(mssql_query("select SUBSTRING(Inventory, 1, 120) from Character where Name = '".$name."'"));
return preg_match('/[^f]/i', bin2hex($inventoryBinary[0]));
}
Функция за SQL Server 2000...