MySQLiconfig.php:
<?php
$MySQLi = new mysqli('localhost','root','123','Database') or die('ERROR');
Other document:
<?php
require 'MySQLiconfig.php';
function DoAQuery($Query){
$MySQLi->query($Query);
}
The error is:
Undefined variable: MySQLi