mysqli_connect
even with the wrong user does not return any error.
No need to show code, because in xampp it works perfectly.
Making the connection:
$conn = mysqli_connect(SQL_HOST, SQL_USUARIO, SQL_SENHA, SQL_BANCO);
mysqli_connect
even with the wrong user does not return any error.
No need to show code, because in xampp it works perfectly.
Making the connection:
$conn = mysqli_connect(SQL_HOST, SQL_USUARIO, SQL_SENHA, SQL_BANCO);
Add the following lines to get the error:
// verificar a conexão
if (mysqli_connect_errno()){
echo "Falha ao conectar ao servidor: " . mysqli_connect_error();
}