<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title></title>
</head>
<body>
<?php
mysql_connect(“localhost”,”root”,”root”);
$dbs = mysql_list_dbs();
echo “Veri Tabalnları: <br />”;
while (list($db) = mysql_fetch_row($dbs)) {
echo “$db <br />”;
}
?>
——————————>Or
<?php
$set = mysql_query('SHOW DATABASES;');
$dbs = array();
while($db = mysql_fetch_row($set))
$dbs[] = $db[0];
echo implode('<br/>', $dbs);
?>
</body>
</html>