<?php mysql_connect("mysql153.secureserver.net","java2s","password"); $dbs = mysql_list_dbs(); echo "Databases: <br />"; while (list($db) = mysql_fetch_row($dbs)) { echo "$db <br />"; } ?>