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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2007
    Posts
    12
    Tokens
    75

    Question Habbo spotlight help?

    This habbo spotlight that I downloaded off of HabboArchive.net isn't working. Whenever I try to go to http://habexclusive.freehostia.com/spotlight/add.php or http://habexclusive.freehostia.com/s.../spotlight.php it displays the following error message: Parse error: parse error, unexpected T_STRING in /home/www/habexclusive.freehostia.com/spotlight/db.php on line 7

    But I have filled out the db.php file with the correct information regarding my database, so what is the problem?

  2. #2
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Post the code for db.php

  3. #3
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by Swabbles View Post
    This habbo spotlight that I downloaded off of HabboArchive.net isn't working. Whenever I try to go to http://habexclusive.freehostia.com/spotlight/add.php or http://habexclusive.freehostia.com/s.../spotlight.php it displays the following error message: Parse error: parse error, unexpected T_STRING in /home/www/habexclusive.freehostia.com/spotlight/db.php on line 7

    But I have filled out the db.php file with the correct information regarding my database, so what is the problem?
    Yes post db.php's content, just replace your db password with something else. You probably deleted a quote or something.

  4. #4
    Join Date
    May 2007
    Posts
    12
    Tokens
    75

    Default

    db.php Code: <?php

    // Simple Habbo Spotlight Script by Vorth of Habbo UK


    $connect = mysql_connect("DB HOST","DB NAME","DB PASS");
    mysql_select_db(DATABASE NAME) or die(mysql_error());

    // Replace CAPITAL LETTERED phrases with your database information.

    ?>

    I removed the database details.

  5. #5

    Default

    PHP Code:
    mysql_select_db(DATABASE NAME) or die(mysql_error()); 
    "DATABASE NAME" must be in quotes (" or '), of course you've got to change this to yours too.

  6. #6
    Join Date
    May 2007
    Posts
    12
    Tokens
    75

    Default

    Ok, the script still doesn't work.

    It now displays the following error:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a4400229/public_html/spotlight/spotlight.php on line 8

  7. #7
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Probably means no data in the table it's trying to get stuff from?


  8. #8
    Join Date
    May 2007
    Posts
    12
    Tokens
    75

    Default

    Thanks. I fixed this problem.

  9. #9
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    I also need help with a Spotlight . To save making a whole new thread, how do you make the database? :S

  10. #10
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by Robald View Post
    I also need help with a Spotlight . To save making a whole new thread, how do you make the database? :S
    You do it in cPanel or whatever control panel you use. In cPanel it's in "MySQL Databases".
    Last edited by Jxhn; 15-11-2008 at 08:02 AM.

Page 1 of 2 12 LastLast

Posting Permissions

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