Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Single error when loading the page. (http://www.mysidiaadoptables.com/forum/showthread.php?t=1082)

Squiddle 09-06-2009 02:58 AM

Single error when loading the page.
 
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/


Quote:

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:

Code:

//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

RE: Single error when loading the page.
 
I think it should be like:

PHP Code:

$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


All times are GMT -5. The time now is 02:50 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.