[PHP] Problem
#1

Hi all,

 

I have a problem :

 

"Parse error: syntax error, unexpected ) in /data/filer-6/web/web681/htdocs/Config/Config.php on line 67"

 

$mySQL["server"] = localhost;
$mySQL["username"] = root;
$mySQL["password"] = ;
$mySQL["database"] = newproject_db_auth;

Line 67 & 68 :

$mysqlcon = mysql_connect( $mySQL["server"] , $mySQL["username"] , $mySQL["password"] ) or die( mysql_error ) );
mysql_select_db( $mySQL["database"] , $mysqlcon) or die( mysql_error) );

Can you help me pls ?

 

Thanks,

#2
Maybe the configs are not setted up with mysql password, or mysql password did not matched. It seems so, try to look plz

#3

or die( mysql_error ) );

 

or die( mysql_error () );

#4

Look here. Wink 

$mysqlcon = mysql_connect( $mySQL["server"] , $mySQL["username"] , $mySQL["password"] ) or die( mysql_error ) )<- What is this one no opening bracket, but closing?;

 

To fix paste this on line 67 + 68, since both lines have the same problem.

 

$mysqlcon = mysql_connect($mySQL["server"], $mySQL["username"], $mySQL["password"]) or die(mysql_error);
mysql_select_db($mySQL["database"], $mysqlcon) or die(mysql_error);

 

Hi,

 

Thanks for your answers but now i have another error XD ><

 

Look :

 

 

Warning: mysql_connect() [2]: Host ASP-ECOB4L4 is not allowed to connect to this MySQL server in C:\xampp\htdocs\Config\Config.php on line 67

 

Notice: Use of undefined constant mysql_error - assumed mysql_error in C:\xampp\htdocs\Config\Config.php on line 67

mysql_error

 

Line 67 & 68 :

 

$mysqlcon = mysql_connect($mySQL["server"], $mySQL["username"], $mySQL["password"]) or die(mysql_error);
mysql_select_db($mySQL["database"], $mysqlcon) or die(mysql_error);

#5


mysql_select_db($mySQL["database"], $mysqlcon) or die(mysql_error($mysqlcon));

 

2



Forum Jump:


Users browsing this thread: 1 Guest(s)