show_databases

Code

<?php
$link = mysql_connect("manas8x", "root", "Manas8");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Show Databses with php</title>
</head>
<body text="#000080" bgcolor="#FDE9BB">
<br>
<?php
$db_list = mysql_list_dbs($link);
$i = 0;
while ($row = mysql_fetch_object($db_list)) {
$i++;
echo "DB $i : ".$row->Database . "<br/>";
}
?>
</body>
</html>