How do I connect to MySQL database using PHP?
To access your database using PHP, you will need the following code to initiate the database connection:For more information on MySQL and PHP, please refer to PHP's MySQL Functions.
$link = mysql_connect ("localhost", "username", "password")
or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);
