Sample Connection String to Connect to Database

$dbh=mysql_connect (“localhost”, “cpuser_dbuser–> this is database username”,
–>this is database password”) or die(‘Cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“cpuser_dbname–>this is database name”);