![]() |
|
[PHP] Problem - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196) +---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192) +---- Thread: [PHP] Problem (/showthread.php?tid=822) |
- Kotetsu - 05-19-2012 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, - Ascadia-Network - 05-19-2012 Maybe the configs are not setted up with mysql password, or mysql password did not matched. It seems so, try to look plz - Wizatek - 05-20-2012 or die( mysql_error ) ); or die( mysql_error () ); - Kotetsu - 05-20-2012 Look here. $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); - someone - 05-20-2012 mysql_select_db($mySQL["database"], $mysqlcon) or die(mysql_error($mysqlcon)); 2 |