Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7

Thread: A little help

  1. #1
    Join Date
    Mar 2006
    Location
    C:\\Program Files
    Posts
    2,592
    Tokens
    0

    Latest Awards:

    Default A little help

    Hey all

    Just a quick question

    My site www.musicxq.com well if you look at the Navagation you will se it has lots of [][][][][] at the end for some reason. I was wondering why this is and if you could help. The code in the Navagation file is:


    PHP Code:
    <?
    include "config.php";


    $sql mysql_query("SELECT * FROM `nav` ORDER BY `id` ASC");
    while (
    $disp mysql_fetch_array($sql)) {

    echo (
    "

    <a href=\"
    $disp[url]\">[$disp[name]]</a> |
    "
    );

    }

    ?>
    So, if you could help me and get that sorted it would be great
    Thanks in advance


  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Like I said, its your SQL im sure...

  3. #3
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Its your SQL.

    I think you might be calling a column name that isnt there.
    [$disp[name]]

    Its running through it correctly but it cannot pull $disp[name] out of the DB.

    hence why its showing all the []'s


  4. #4
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Kevin I think the column is there, as he has SOME navigation links.

    I think he just has some empty rows?

  5. #5
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Maybe he does..

    His domain doesn't even work for me so im going off the top of my head..

    Im thinking its either empty rows or the column is undefined

  6. #6
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    perhaps there is empty stuff in the db

  7. #7
    Join Date
    Mar 2006
    Location
    C:\\Program Files
    Posts
    2,592
    Tokens
    0

    Latest Awards:

    Default

    Proablem Solved.... Thread Closed ;]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •