Quick and simple Mysql connect
September 8th, 2006 Posted in MYSQLThis is the simplest and neatest way to connect to a MySQL database using php
PHP:
-
$dbh=mysql_connect ("localhost", "username", "password") or die ('I cannot connect to the database because: ' . mysql_error());