I have this query
update warehouse set Items = CAST(0xvarbinarycode as varbinary(7680)) where AccountID = 'account'
If i run this query from SQL Management all is ok. But if i run from PHP... nothing happened.
Php Code.
$mynewitemstoadd = substr_replace($mycuritems, $newitemtobuy, ($testslot+2), 64);
//mynewitemstoadd is a valid varbinary (tested), connection to sql is ok (other query work fine).
$additem = "update [warehouse] set [Items]=CAST($mynewitemstoadd as varbinary(7680)) where [AccountId]='$account'";
$dbadditem = new DB_MSSQL;
$dbadditem->Database=$mu_db;
$dbadditem->query($additem);
If i print my query result return 1 (OK).
Thank you very much!