[PHP] Problem
#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);



Messages In This Thread
[No subject] - by Kotetsu - 05-19-2012, 07:31 PM
[No subject] - by Ascadia-Network - 05-19-2012, 11:13 PM
[No subject] - by Wizatek - 05-20-2012, 05:09 AM
[No subject] - by Kotetsu - 05-20-2012, 05:38 PM
[No subject] - by someone - 05-20-2012, 08:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)