Reply to Re: How can i display a list of mysql databases in php?

Your name:

Reply:


Posted by Ninja_Monkey on 10/13/40 11:40

ill show you the code im trying.

$connection = mysqli_connect($_SESSION['host'], $_SESSION['user'],
$_SESSION['pass']);
$sql = "SHOW DATABASES";
$result = mysqli_query($connection, $sql);
$dblist = mysqli_fetch_array($result, MYSQLI_NUM); # A PRINT OF THIS
SAYS Array
$c = 0;
while (count($dblist) > $c) {
print_r($dblist[$c] . "<br>\n"); #THIS PRINTS OUT AS:
"information schema". IT ONLY PRINTS 1 aswell.
$c++;
}
$result = NULL;
@mysqli_free_result($result);
mysqli_close($connection);

What is an information Schema??? and why does this not work.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация