patco Posted September 6, 2008 Share Posted September 6, 2008 the error is: Parse error: parse error, unexpected ',' in /home/www/xtremebux.cogia.net/config.php on line 10 The line in config.php is: $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db(mydatabase, $con) where could be that error what's this unexpected ',' Link to comment https://forums.phpfreaks.com/topic/123062-parse-error/ Share on other sites More sharing options...
elflacodepr Posted September 6, 2008 Share Posted September 6, 2008 try this $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db("mydatabase", $con); because for what i can see...i dont see anything else wrong Link to comment https://forums.phpfreaks.com/topic/123062-parse-error/#findComment-635501 Share on other sites More sharing options...
Mchl Posted September 6, 2008 Share Posted September 6, 2008 Probably should be like this. $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db("mydatabase", $con); if your database is called "mydatabase" or like this $con = mysql_connect($bd_host, $bd_usuario, $bd_password); mysql_select_db($mydatabase, $con); if your databse name is stored in variable Link to comment https://forums.phpfreaks.com/topic/123062-parse-error/#findComment-635503 Share on other sites More sharing options...
patco Posted September 6, 2008 Author Share Posted September 6, 2008 no of course i remove the "$" :-\ my database is patco_?admin. could that "?" do something wrong Link to comment https://forums.phpfreaks.com/topic/123062-parse-error/#findComment-635505 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.