*/
public function __construct($host, $username, $password, $dbname)
{
- $connection = new mysqli($host, $username, $password, $dbname);
- $this->connection = $connection;
+ $this->connection = new mysqli($host, $username, $password, $dbname);
if (!$this->connection->connect_errno) {
$this->connected = true;