List all database in php

<!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

?>

</body>

</html>

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

2 × one =

This site uses Akismet to reduce spam. Learn how your comment data is processed.