|
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.
Navigation:
[Reply to this message]
|