PDA

View Full Version : Single error when loading the page.


Squiddle
09-06-2009, 02:58 AM
Hi everyone! Well, I'm almost done installing the Pet Script, but when I try to load the page, it gives me an error. Check it out for yourself:

http://squiddleonline.webatu.com/


Parse error: syntax error, unexpected T_DNUMBER in /home/a2164949/public_html/inc/functions.php on line 13.

I beleive this is my fault, as I tried editing this file in order to make it work. Here's the sub which contains line 13:


//This function simply connects us to the database
function connect(){

include("config.php");
$conn = mysql_connect(mysql12.000webhost.com, a2164949_Squid, *Censored*) or die ('Error connecting to MySQL');
mysql_select_db(a2164949_Squid);

}

BMR777
09-06-2009, 03:27 PM
I think it should be like:

$conn = mysql_connect('mysql12.000webhost.com', 'a2164949_Squid', '*Censored*') or die ('Error connecting to MySQL');
mysql_select_db('a2164949_Squid');

You need ' marks around the data. :)

Hope it helps,
Brandon