Log in

View Full Version : Habbo spotlight help?



Swabbles
30-10-2008, 09:01 PM
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/spotlight/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?

Trinity
30-10-2008, 11:10 PM
Post the code for db.php

Jxhn
31-10-2008, 08:28 AM
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/spotlight/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.

Swabbles
31-10-2008, 08:51 AM
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.

Iszak
31-10-2008, 09:27 AM
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.

Swabbles
14-11-2008, 02:41 PM
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

L?KE
14-11-2008, 07:52 PM
Probably means no data in the table it's trying to get stuff from?

Swabbles
15-11-2008, 12:23 AM
Thanks. I fixed this problem.

Black_Apalachi
15-11-2008, 07:12 AM
I also need help with a Spotlight :P. To save making a whole new thread, how do you make the database? :S

Jxhn
15-11-2008, 08:00 AM
I also need help with a Spotlight :P. 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".

Black_Apalachi
15-11-2008, 10:43 AM
You do it in cPanel or whatever control panel you use. In cPanel it's in "MySQL Databases".

Oh that's OK then :D. Thanks.

Want to hide these adverts? Register an account for free!