//secondConnect.php
$host="localhost";
$user="dahl";
$password="Suite.100";
$database="dahl";
$connection = mysql_connect($host,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$connection = mysql_connect('www', 'dahl', 'Suite.100') or die("Can't connect");
$msg = "
Connected to MySQL......
"; //create variable $DB to hold results of function to list databases //which will return a list (array) of the names of the databases that //MySQL currently has $DBresults = @mysql_list_dbs($connection) or die("Could not list databases!"); //start an output string to hold database HTML list for printout $dbList = "
echo " MySQL Databases on Local Host
echo "$dbList"; ?>
"; ?>