[MSSQL] Character inventory
Hi guys? Whats up !.
I'm trying to show the images of the items of inventory on a web page example:
https://forum.ragezone.com/cache.php...2FCapturar.png
I get the binary data from table in mu database:
https://forum.ragezone.com/cache.php...2FCapturar.png
Example how i can get data:
<?
$dbhost = "";
$db = "MuOnline";
$user = "sa";
$password = ""; #Senha do usuário
@mssql_connect($dbhost,$user,$password) or die("Não foi possível a conexão com o servidor!");
@mssql_select_db("$db") or die("Não foi possível selecionar o banco de dados!");
$sql = mssql_query('SELECT * FROM Character WHERE Name = "test"');
$dado = mssql_fetch_array ($sql);
$teste = $dado['Inventory'];
echo $dado['Inventory'];
?>
<br />
<br />
<? echo bin2hex('$teste'); ?>
So how i can display in image ?
IDEA:
I can use the webshop gif to display ? If the items have an ID to get... .
Its possible ?