Web Hosting Talk







View Full Version : MySQL connect ........


wild_monkey
06-06-2001, 12:08 AM
all we know the MySQL connect string ( PHP script ) would be :

mysql_connect("localhost", "username", "password");

but some of the web-hosting like F2S would be :

mysql_connect("servername:port", "username", "password");

other else ??

Chicken
06-06-2001, 07:23 PM
I believe that should do it.

freakysid
06-06-2001, 08:45 PM
Looks good. Don't forget when in doubt to refer to the online manual at www.php.net It is the best online manual I've ever come accross with a quick search facility to quickly look up the documnetation by funciton name. Also the annotated manual is full of user contributions from which I continue to learn new things :)