PHP Page of banned users [list]

Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #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 />';
    }
    ?>

  2. #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

  3. #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 =)

  4. #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

  5. #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.

  6. #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

  7. #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!!!



Page 2 of 2 FirstFirst 12

Advertisement