Well I make a connection to mysql DB like this:
// Conecta-se ao banco do servidor
ini_set('default_charset', 'UTF-8');
$mysqli = mysqli_connect('127.0.0.1', 'root', '123', 'teste');
Query($mysqli, "SET NAMES utf8");
How can I retrieve the name of the BD teste
through the $mysqli
variable that contains the connection.