2
Good make a connection to BD mysql 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 get the comic’s name back teste
through the variable $mysqli
that contain the connection.
The last parameter passed to the "mysqli_connect" function is the name of the database, wouldn’t it be better if you store this is a global variable? So you wouldn’t need to make a query to know the name of the bank.
– Kayo Bruno
Good that Solve yes.
– Hugo Borges