Fandom

PHP Wiki

Mysql connect

51pages on
this wiki
Add New Page
Talk0 Share

Description: mysql_connect ([ string $server [, string $username [, string $password [, bool $new_link [, int $client_flags ]]]]] )

Opens a connection to a MySQL server.

Available in PHP 4, PHP 5, PECL mysql:1.0

$server : The MySQL server. Can include a port number

$username : Username used to connect to MySQL Server.

$password : Password used to connect to MySQL Server.

Example : mysql_connect($server, $username, $password) or die(mysql_error());

For more information click here

03:32, 14 January 2008 (UTC)Jorge2904

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.