mysql_connect

PHP 4, PHP 5
mysql_connect - Open a connection to a MySQL Server
Manual
Code Examples

Example #1 mysql_connect example

PHP Version:

Example #2 mysql_connect example using hostname:port syntax

PHP Version:

Example #3 mysql_connect example using ":/path/to/socket" syntax

PHP Version: