//secondConnect.php
$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"; ?>
"; ?>