oracle259 Posted September 26, 2006 Share Posted September 26, 2006 How do i tell the PHP script what port to use to connect to the mysql db.I have been trying [code]$conn = mysql_connect($dbhost:$dbport, $dbuser, $dbpwd);[/code]but i doesnt seem to work. Help Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 27, 2006 Share Posted September 27, 2006 Try this:[code=php:0]$conn = mysql_connect($dbhost . ':' . $dbport, $dbuser, $dbpwd);[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.