This commit is contained in:
2026-05-15 20:23:25 +02:00
parent c980004309
commit bc5cae7e82
74 changed files with 563 additions and 130 deletions

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
*
@@ -79,9 +79,9 @@ class DBMysql implements DBConnection {
protected function DbConnect() {
//echo"konekt";
Profiler::log('mysqlStart', '', microtime());
$this->dbh = new mysqli($this->dbHost, $this->user, $this->pass, $this->dbName);
$this->dbh = @new mysqli($this->dbHost, $this->user, $this->pass, $this->dbName);
if ($this->dbh->connect_errno) {
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
throw new MysqlException("Failed to connect to MySQL: (" . $this->dbh->connect_errno . ") " . $this->dbh->connect_error, $this->dbh->connect_errno);
}
}
@@ -346,6 +346,9 @@ class DBMysqlStatement implements DBStatement {
$this->Execute();
//var_dump($this->result);
//Utils::ArrayDisplay($this);
if (!($this->result instanceof mysqli_result)) {
return false;
}
$result = \mysqli_fetch_assoc($this->result);
}
@@ -353,6 +356,9 @@ class DBMysqlStatement implements DBStatement {
//$this->dbMysql->Connect(__METHOD__);
$this->Execute();
if (!($this->result instanceof mysqli_result)) {
return false;
}
$result = mysqli_fetch_assoc($this->result);
$this->CacheWrite($result);
} else {
@@ -701,4 +707,4 @@ class DBProd extends DBMysql {
}
?>
?>