O
old.Trav
Guest
how do you specify a port using that function?
resource mysql_connect ([string hostname [ort] [:/path/to/socket] [, string username [, string password]]])
Returns a MySQL link identifier on success, or FALSE on failure.
mysql_connect() establishes a connection to a MySQL server. The following defaults are assumed for missing optional parameters: hostort = 'localhost:3306', username = name of the user that owns the server process and password = empty password.
The hostname string can also include a port number. eg. "hostnameort" or a path to a socket eg. ":/path/to/socket" for the localhost.