made the code more composer friendly
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
namespace Novaconium;
|
||||
|
||||
class Database {
|
||||
|
||||
@@ -6,7 +7,7 @@ class Database {
|
||||
public $lastid;
|
||||
|
||||
public function __construct($dbinfo) {
|
||||
$this->conn = new mysqli($dbinfo['host'], $dbinfo['user'], $dbinfo['pass'], $dbinfo['name']);
|
||||
$this->conn = new \mysqli($dbinfo['host'], $dbinfo['user'], $dbinfo['pass'], $dbinfo['name']);
|
||||
if ($this->conn->connect_error) {
|
||||
die("Connection failed: " . $this->conn->connect_error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user