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 6 of 6
  1. #1
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default Quick PHP Question

    I'm using
    PHP Code:
    <?php include("whatever.php"); ?>
    but I'm in ROOT > STAFF > GUIDES but the page I want to include is in ROOT > STAFF.

  2. #2
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    if you want to go down a directory:

    PHP Code:
    <?php include("../whatever.php"); ?>
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  3. #3
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Quote Originally Posted by Jamesy View Post
    if you want to go down a directory:

    PHP Code:
    <?php include("../whatever.php"); ?>
    Ahhhh... Thank you, I knew it was something like that.. I has ..whatever.php :8

    - EDIT ///
    Any reason why this doesn't show?
    PHP Code:
    site you're djing on, for example <?php echo $sitename?>. Last of all under "Track Title/URL" there is an option that says "Enable title updates" which should be ticked along side with "Title".
    The code is in between general text, html though.

    at the top of the page I've got
    PHP Code:
    <?php include("../config.php"); ?>
    which links to config.php which has
    PHP Code:
     <?php

    $host 
    "localhost";

    $user "root";

    $pass "123";

    $data    "blahblah";

    $sitename "YOUR SITE NAME";

    $ms mysql_pconnect($host$user$pass);

    if( !
    $ms )

        {

        echo 
    "Error connecting to database.
    "
    ;

        }

    mysql_select_db($data);

    ?>
    Last edited by Shibby-Shabs; 12-02-2010 at 11:30 AM.

  4. #4
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    site you're djing on, for example <?php echo("$sitename"); ?>. Last of all under "Track Title/URL" there is an option that says "Enable title updates" which should be ticked along side with "Title".
    Try that, maybe it doesnt matter but mehh lol


    Lew.
    Im not here to be loved, I love to be hated :-}


  5. #5
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    Your page is a .php right?

  6. #6
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Quote Originally Posted by Lewiie15 View Post
    Try that, maybe it doesnt matter but mehh lol


    Lew.
    I'll give it a try soon - not on my computer.
    Quote Originally Posted by iApps View Post
    Your page is a .php right?
    Yes, of course. Good question thought

Posting Permissions

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