PHP Page of banned users [list]

Results 1 to 22 of 22
  1. #1
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    PHP Page of banned users [list]

    <?
    include "Tittle.txt";
    $released = true;
    if($released == true){
    $Replay = "Thanxx";
    }
    ?>


  2. #2
    Account Upgraded | Title Enabled! shadow-xx is offline
    MemberRank
    Jan 2007 Join Date
    MegatonLocation
    804Posts

    Re: PHP Page of banned users [list]

    Not tested!

    PHP Code:
    <?php
    $database
    ['name'] = 'GunZDB';
    $database['user'] = 'sa';
    $database['pass'] = '';
    $dbc odbc_connect($database['name'],$database['user'],$database['pass']);
    while (
    odbc_fetc_array(odbc_query($dbc,"SELECT * FROM Account WHERE UgradeID='253'")) = $row) {
        foreach(
    $row as $var => $val) {
            echo 
    $var.' = '.$val."\r\n";
        }
        echo 
    '-------------------------------------';
    }
    ?>

  3. #3
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    Ty, but not working D:

  4. #4
    Account Upgraded | Title Enabled! shadow-xx is offline
    MemberRank
    Jan 2007 Join Date
    MegatonLocation
    804Posts

    Re: PHP Page of banned users [list]

    Try this i just tested this one

    PHP Code:
    <?php
    $database
    ['name'] = 'GunZDB';
    $database['user'] = 'sa';
    $database['pass'] = '';

    $dbc odbc_connect($database['name'],$database['user'],$database['pass']);
    $query odbc_exec($dbc,"SELECT * FROM Account WHERE UgradeID='253'");

    while (
    $row odbc_fetch_array($query)) {
        foreach(
    $row as $var => $val) {
            echo 
    $var.' = '.$val.'<br />';
        }
        echo 
    '-------------------------------------<br />';
    }
    ?>

  5. #5
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    ya, nice =) working

    but, maybe you can make it only to post the Account ID(name) and its Characters,, this will be very useful
    Thanks in advance....

  6. #6
    Account Upgraded | Title Enabled! sayuta is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    205Posts

    Re: PHP Page of banned users [list]

    Try this ;


    PHP Code:
    <?php 
    $database
    ['name'] = 'GunZDB'
    $database['user'] = 'sa'
    $database['pass'] = ''
     
    $dbc odbc_connect($database['name'],$database['user'],$database['pass']); 
    $query odbc_exec($dbc,"SELECT * FROM Account WHERE UgradeID='253'"); 
     
    while (
    $row odbc_fetch_array($query)) { 
    echo 
    "".$row['AID']." ".$row['Character']."<br>";

    ?>

    Not sure what table name, just change the AID & the Character to the correct one..

  7. #7
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    it is only showing the banned users number D: but, ty =)

  8. #8
    Account Upgraded | Title Enabled! sayuta is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    205Posts

    Re: PHP Page of banned users [list]

    Well, what do u want exactly?

  9. #9
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    That the banned users(Name) with there characters(Name) to be posted, i don't want that all the table data to be posted D:

    Thanks again :)

  10. #10
    Account Upgraded | Title Enabled! shadow-xx is offline
    MemberRank
    Jan 2007 Join Date
    MegatonLocation
    804Posts

    Re: PHP Page of banned users [list]

    This should work...
    not tested on characters as i dont have a database that contains any he he..

    PHP Code:
    <?php
    $database
    ['name'] = 'GunZDB';
    $database['user'] = 'sa';
    $database['pass'] = '';

    $dbc odbc_connect($database['name'],$database['user'],$database['pass']);
    $acc_query odbc_exec($dbc,"SELECT AID,UserID FROM Account WHERE UgradeID='253'");

    while (
    $acc odbc_fetch_array($acc_query)) {
        echo 
    $acc['UserID'].'<br />';
        
    $char_query odbc_exec($dbc,"SELECT Name FROM Character WHERE AID='".$row['AID']."'");
        while(
    $char odbc_fetch_array($char_query)) {
            echo 
    '> '.$char['name'];
        }
        echo 
    '--------------------<br />';
    }
    ?>

  11. #11
    Account Upgraded | Title Enabled! Anan is offline
    MemberRank
    Apr 2008 Join Date
    692Posts

    Re: PHP Page of banned users [list]

    Wow cool , shadow-xx one is the best one of them... it says only Name... easier but else are good too :o
    or got a idea make first thing like shadow-xx , if press on name get reason and details of banning for the user... but that is like need to make new shit xD

  12. #12
    Account Upgraded | Title Enabled! sayuta is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    205Posts

    Re: PHP Page of banned users [list]

    i dont got a DB either,
    Shadows script looks fine ;). i think you mean that.

  13. #13
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    well, ya.. that php is working all right, but it still doesn't show the character for the posted account name, but anyway, thanx alot shadow-xx & sayuta :)

  14. #14
    Account Upgraded | Title Enabled! shadow-xx is offline
    MemberRank
    Jan 2007 Join Date
    MegatonLocation
    804Posts

    Re: PHP Page of banned users [list]

    Forgot the capital N T_T

    PHP Code:
    <?php
    $database
    ['name'] = 'GunZDB';
    $database['user'] = 'sa';
    $database['pass'] = '';

    $dbc odbc_connect($database['name'],$database['user'],$database['pass']);
    $acc_query odbc_exec($dbc,"SELECT AID,UserID FROM Account WHERE UgradeID='253'");

    while (
    $acc odbc_fetch_array($acc_query)) {
        echo 
    $acc['UserID'].'<br />';
        
    $char_query odbc_exec($dbc,"SELECT Name FROM Character WHERE AID='".$row['AID']."'");
        while(
    $char odbc_fetch_array($char_query)) {
            echo 
    '> '.$char['Name'];
        }
        echo 
    '--------------------<br />';
    }
    ?>
    Offtopic :
    If anyone has a nicely filled db feel free to donate it will make things easier.

  15. #15
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    Ty,, but same, only account names shown =)

  16. #16
    Account Upgraded | Title Enabled! shadow-xx is offline
    MemberRank
    Jan 2007 Join Date
    MegatonLocation
    804Posts

    Re: PHP Page of banned users [list]

    Inserted some characters in my db..
    And then tested this..

    i forgot to change ".$row['AID']."'"); Into ".$acc['AID']."'");
    Stupid mistakes T_T

    PHP Code:
    <?php
    $database
    ['name'] = 'GunZDB';
    $database['user'] = 'sa';
    $database['pass'] = '';

    $dbc odbc_connect($database['name'],$database['user'],$database['pass']);
    $acc_query odbc_exec($dbc,"SELECT AID,UserID FROM Account WHERE UgradeID='253'");

    while (
    $acc odbc_fetch_array($acc_query)) {
        echo 
    $acc['UserID'].'<br />';
        
    $char_query odbc_exec($dbc,"SELECT Name FROM Character WHERE AID='".$acc['AID']."'");
        while(
    $char odbc_fetch_array($char_query)) {
            echo 
    '> '.$char['Name'].'<br />';
        }
        echo 
    '--------------------<br />';
    }
    ?>

  17. #17
    Account Upgraded | Title Enabled! sayuta is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    205Posts

    Re: PHP Page of banned users [list]

    Wanted to say that, but u fixxed it already xD

  18. #18
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    lol, nice guys, thanks a lot for your help =)

  19. #19
    Account Upgraded | Title Enabled! sayuta is offline
    MemberRank
    Jan 2007 Join Date
    The NetherlandsLocation
    205Posts

    Re: PHP Page of banned users [list]

    Your welcome o.o

  20. #20
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: PHP Page of banned users [list]

    Quote Originally Posted by sayuta View Post
    Try this ;


    PHP Code:
    <?php 
    $database
    ['name'] = 'GunZDB'
    $database['user'] = 'sa'
    $database['pass'] = ''
     
    $dbc odbc_connect($database['name'],$database['user'],$database['pass']); 
    $query odbc_exec($dbc,"SELECT * FROM Account WHERE UgradeID='253'"); 
     
    while (
    $row odbc_fetch_array($query)) { 
    echo 
    "".$row['AID']." ".$row['Character']."<br>";

    ?>
    Not sure what table name, just change the AID & the Character to the correct one..
    And this is another proof you don't know master PHP.

    PHP Code:
    echo "".$row['AID']." ".$row['Character']."<br>"
    Should simply be

    PHP Code:
    echo $row['AID']." ".$row['Character']."<br>"
    Ok, out of this discussion. Not worth my time.

  21. #21
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: PHP Page of banned users [list]

    This doesn't matter, his php is working fine by me, that's good... ty

  22. #22
    Account Upgraded | Title Enabled! 4ndr34s is offline
    MemberRank
    Sep 2007 Join Date
    At My Home O_oLocation
    587Posts

    Re: PHP Page of banned users [list]

    thanks!!!



Advertisement