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 Link to comment https://forums.phpfreaks.com/topic/22176-using-different-ports-to-connect-to-mysql-db/ 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] Link to comment https://forums.phpfreaks.com/topic/22176-using-different-ports-to-connect-to-mysql-db/#findComment-99461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.