[MSSQL] Character inventory

Results 1 to 1 of 1
  1. #1
    Enthusiast Kernal112 is offline
    MemberRank
    Apr 2015 Join Date
    Novo Hamburg, RLocation
    37Posts

    config [MSSQL] Character inventory

    Hi guys? Whats up !.
    I'm trying to show the images of the items of inventory on a web page example:


    I get the binary data from table in mu database:





    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 ?
    Last edited by Kernal112; 17-05-15 at 08:54 PM.




Advertisement