Recent changes Random page
GAMING
Technology
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Mysql connect

from PHPWiki - the free guide to PHP.

Jump to: navigation, search

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

Rate this article:
Share this article: