I'm wondering which one should I use? mysqli_connect_error or mysqli_connect_errno
public function connect() {
    $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
    if (!$this->connection->connect_error) {
        die("Connection Failed" . " " . $this->connection->connect_error);
    }
}
Or
public function connect() {
    $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
    if (!$this->connection->connect_errno) {
        die("Connection Failed" . " " . $this->connection->connect_error);
    }
}
 
     
    