A bit of a beginner example which shows how to list all of your MySQL databases
$server = "localhost";
$username = "root";
$password = "";
$con = mysql_connect("$server","$username","$password")or die ("Couldn't connect to MySQL Server.");
$listdb = mysql_list_dbs($con);
while ($row = mysql_fetch_object($listdb))
{
echo $row->Database . "
";
}
?>
Showing posts with label mysql_fetch_object. Show all posts
Showing posts with label mysql_fetch_object. Show all posts
Monday, September 21, 2009
Subscribe to:
Posts (Atom)