[RELEASE] Website XML Stats Examples for Rose Online

Results 1 to 8 of 8
  1. #1
    Member brand0n2 is offline
    MemberRank
    Feb 2007 Join Date
    Cincinnati, OHLocation
    99Posts

    [RELEASE] Website XML Stats Examples for Rose Online

    This is a way you can do XML for things like: image stats, live stats on your site, etc...


    Users List:
    PHP Code:
    <?
    header
    ('Content-Type: text/xml');
    print 
    "<rose>

    "
    ;

    $username="root";
    $password="******";
    $dbname "roseon";

    $conn mysql_connect(localhost,$username,$password);
    mysql_select_db($dbname);

    // read data from database
    $result mysql_query("select * from characters")
    or die (
    "Could not read data because ".mysql_error());

    // print the data in a table or xml
    if (mysql_num_rows($result)) {
    while (
    $qry mysql_fetch_array($result)) {
    print 
    '  <player>
    '
    ;
    print 
    '    <name>'.$qry[char_name].'</name>
    '
    ;
    print 
    '    <level>'.$qry[level].'</level>
    '
    ;
    print 
    '    <curhp>'.$qry[curHp].'</curhp>
    '
    ;
    print 
    '    <curmp>'.$qry[curMp].'</curmp>
    '
    ;
    print 
    '    <str>'.$qry[str].'</str>
    '
    ;
    print 
    '    <dec>'.$qry[dex].'</dec>
    '
    ;
    print 
    '    <cha>'.$qry[cha].'</cha>
    '
    ;
    print 
    ' ';
    print 
    '    <exp>'.$qry[exp].'</exp>
    '
    ;
    print 
    '    <zuly>'.$qry[zuly].'</zuly>
    '
    ;
    print 
    '  </player>


    '
    ;
    }
    }
    print 
    "

    </rose>"
    ;
    ?>
    KEEP IN MIND: Thats just an example, you can do what it which you like, for example, i made MSN Bot that did live stats for the server & connects to IRC & Live Signatures using PHP & GD. :technolog
    Last edited by brand0n2; 13-02-08 at 12:11 PM.


  2. #2
    Gamma GeNyaa is offline
    MemberRank
    Apr 2007 Join Date
    The NetherlandsLocation
    2,586Posts

    Re: [RELEASE] Website XML Stats Examples for Rose Online

    It's nice...
    But there are some changes...
    I not going to post that from me but it's nice to start whit!

  3. #3
    Member brand0n2 is offline
    MemberRank
    Feb 2007 Join Date
    Cincinnati, OHLocation
    99Posts

    Re: [RELEASE] Website XML Stats Examples for Rose Online

    Yes, using this method, you can create alot of neat things. Me, I made Signature stats, bots, and everything.

  4. #4
    Apprentice Rifke is offline
    MemberRank
    Jul 2006 Join Date
    BelgiumLocation
    6Posts

    Re: [RELEASE] Website XML Stats Examples for Rose Online

    You retrieve everything from your database?
    Code:
    select * from characters
    And you don't even need half of it? Don't you think you're spoiling precious site resources? And the point in using XML at this point is quite ussless? Because it doesn't give any advantage in your script? Loading it in a table it faster and has a layout already. This one you have to link to a CSS file in order to have some sort of layout.

    The only real way this would be valuable it by using it with JavaScript (and/or AJAX). Neverless, good basic coding.

  5. #5
    Member brand0n2 is offline
    MemberRank
    Feb 2007 Join Date
    Cincinnati, OHLocation
    99Posts

    Re: [RELEASE] Website XML Stats Examples for Rose Online

    ... Do you even listen to yourself?

    Select * from Characters = It gets the info you want it to echo, so like it will echo the name, and level of a user.... Also, it gets the information i want from the "CHARACTER" STRUCTURE/TABLE

    ...idiot....Select ALL Tables from Characters ... but as you see in the damn script, i only want it to send out certain information keeping the others secret. understand?

    ...if your not stupid, you can use this script to edit it to make it into HTML tables. Prick.

  6. #6
    Blank fate963 is offline
    MemberRank
    Sep 2006 Join Date
    PennsylvaniaLocation
    659Posts

    Re: [RELEASE] Website XML Stats Examples for Rose Online

    Lmao, someone is pissed. :s

  7. #7
    Member brand0n2 is offline
    MemberRank
    Feb 2007 Join Date
    Cincinnati, OHLocation
    99Posts

    Re: [RELEASE] Website XML Stats Examples for Rose Online

    I had a very very very bad day.... When someone tries to correct something when i put "EXAMPLE" in the title just adds to it.

  8. #8
    Gamma GeNyaa is offline
    MemberRank
    Apr 2007 Join Date
    The NetherlandsLocation
    2,586Posts

    Re: [RELEASE] Website XML Stats Examples for Rose Online

    It's need some changes if I were Moderator he get a Infraction xD



Advertisement