Home > PHP > Function > mSQL > msql_connect()

msql_connect()

msql_connect - Open mSQL connection

Syntax

resource msql_connect (string $hostname)

Arguments

  • hostname - The hostname can also include a port number. e.g. hostname,port. If not specified, the connection is established by the means of a Unix domain socket, being then more efficient then a localhost TCP socket connection. Note: While this function will accept a colon ( :) as a host/port separator, a comma (,) is the preferred method.

Description

msql_connect() establishes a connection to a mSQL server.

Version

PHP 4, 5

Return value

Returns a positive mSQL link identifier on success, or FALSE on error.