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 5 of 5

Thread: Need Help.

  1. #1
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default Need Help.

    Heyy all i have this nav.php..

    now i want to make it ajax i know how but when eva i do it it dosent show the website :S

    okay original code..:
    PHP Code:
    <table width="150">
    <?php 
    database_connect
    ();
    $query "SELECT * from content
              WHERE status = 1
              ORDER by position;"
    ;
    $error mysql_error();
    if (!
    $result mysql_query($query)) {
        print 
    "$error";
        exit;
        }

    while(
    $rij mysql_fetch_object($result)){
      
    $title $rij->title;
      
    $id $rij->id;
      print(
    "<tr>
             <td>
             <a href=\"page.php?id=
    $id\" target=\"centerframe\"><strong>$title</strong></a>
             </td>
             </tr>
            "
    );
        }
    ?>
    </table>
    and what im trying to do is this:
    PHP Code:
    <table width="150">
    <?php 
    database_connect
    ();
    $query "SELECT * from content
              WHERE status = 1
              ORDER by position;"
    ;
    $error mysql_error();
    if (!
    $result mysql_query($query)) {
        print 
    "$error";
        exit;
        }

    while(
    $rij mysql_fetch_object($result)){
      
    $title $rij->title;
      
    $id $rij->id;
      print(
    "<tr>
             <td>
             <a href=\"javascript:ajaxpage('page.php?id=
    $id\', 'mainarea');"><strong>$title</strong></a>
             </
    td>
             </
    tr>
            
    ");
        }
    ?>
    </table>
    WHAT i mean by blank and it dosent show = http://fallin-angels-fanatic.org/

    ?? please respond i need to get it working ??
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  2. #2
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    It shows, but is there any need

    To Type Like This Everywhere On Your Content?

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

    Latest Awards:

    Default

    PHP Code:
    <table width="150">
    <?php
     
    database_connect
    ();
     
    $query "SELECT * FROM `content`
              WHERE `status` = '1'
              ORDER BY `position`;"
    ;
     
    $error mysql_error();
     
    if (!
    $result mysql_query($query))
    {
     
        die 
    $error;
        exit; 
    // Not needed really.
     
    }
     
    while( 
    $rij mysql_fetch_objects$result ) )
    {
     
      
    $title $rij->title;
      
    $id $rij->id;
      print(
    "<tr>
             <td>
             <a href=\"javascript:ajaxpage('page.php?id="
    $id ."', 'mainarea');\"><strong>"$title ."</strong></a>
             </td>
             </tr>
            "
    );
     
    }
     
    ?>
    </table>

  4. #4
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default

    invent it dosent work sorry
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  5. #5
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    have you included the functions files for your ajaxpage() functions?
    Coming and going...
    Highers are getting the better of me

Posting Permissions

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