0
Good make the connection in my mysql so:
$mysqli = mysqli_connect('127.0.0.1', 'root', '123', 'teste');
I want to know how I can recover the name of the database through the variable that receives the connection '$mysqli'.
It is possible to do this?
OK, but I want to return the BD name of the connection that is in the variable '$mysqli'. I tried like this: '$mysqli->query("select database()");' but it did not work
– Hugo Borges