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 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default Need PHP Script! [+Rep]

    Please could someone make/find a link to a script like this;

    you go to a page eg- www.mysite.com/page.html?message=1
    and it displays message 1

    and on the same page you can go to www.mysite.com/page.html?message=2 and it displays message 2

    +Rep for link to script or make one

    Thanks,
    Tom
    Lets set the stage on fire, and hollywood will be jealous.

  2. #2
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Wouldn't it be page.php?message=1 ?

    Anyway, do you want the message system along with it ?
    Otherwise I guesse it's just:

    page.php (first bit)
    PHP Code:

    /*
    make sure you're connected to your databases right.
    ex. include("config.php"); etc
    */

    $sql mysql_query("SELECT * FROM databasename WHERE id = '$_GET["message"]'");
    $msg mysql_fetch_array($sql); 
    Second bit (to display message)

    PHP Code:
    if($_GET["message"] == NULL){
    /*
    In this case the link would look like
    page.php or page.php?message=
    */
    echo("
    No message selected
    "
    );
    }else{
    /*
    Here the link would be page.php?message=1 (or any other number)
    */

    /*
    Depending on which rows you've got you display the message, as example i'll use
    - author
    - title
    - message
    */

    echo("
    Message from "
    .$msg[author].",<br />
    Title: "
    .$msg[title]."<br />
    <br />
    Message<br />
    "
    .$msg[message]."
    "
    );

    (Sorry if I made some mistakes but that's what I think it would be (atm) )

  3. #3
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Thanks Oli +Rep
    Lets set the stage on fire, and hollywood will be jealous.

  4. #4
    Join Date
    Oct 2006
    Posts
    2,918
    Tokens
    946
    Habbo
    Verrou

    Latest Awards:

    Default

    If you looked, there is a really good tutorial on it in the tutorials section. That is if the above doesn't work
    Quote Originally Posted by Special-1k View Post
    How do you uninstall an internet? I want to uninstall my Google Chrome and
    get firefox but I never really got rid of an internet my dad usually did it for me.
    If you know how post below so I can do this.

Posting Permissions

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