From 9506b105b26eb58b09e219ab7a2659c5d853204e Mon Sep 17 00:00:00 2001 From: Kubwa Kiume Date: Sat, 28 Nov 2020 11:52:19 +0100 Subject: [PATCH] =?UTF-8?q?'classes/Framework.MySql.Class.php'=20=C3=A4nde?= =?UTF-8?q?rn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bugfix --- classes/Framework.MySql.Class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Framework.MySql.Class.php b/classes/Framework.MySql.Class.php index d1a6558..52e76cb 100644 --- a/classes/Framework.MySql.Class.php +++ b/classes/Framework.MySql.Class.php @@ -15,7 +15,7 @@ { $this->Connection = mysqli_connect($Server, $User, $Pass); if ($Database != null) - {mysqli_select_db($Database, $this->Connection);} + {mysqli_select_db($this->Connection, $Database);} $this->query("CREATE TABLE IF NOT EXISTS _datastore (id VARCHAR(64) PRIMARY KEY, data TEXT)"); } @@ -28,7 +28,7 @@ } public function close() - {mysql_close($this->Connection);} + {mysqli_close($this->Connection);} public function ping() {return mysqli_ping($this->Connection);} @@ -65,11 +65,11 @@ } if ($InQueryPos + strlen("{".$Key."}") >= strlen($Query)) {$FollowingChr = "'";} $ReplaceData[0][] = "{".$Key."}"; - $ReplaceData[1][] = $LeadingChr.mysqli_real_escape_string($Value, $this->Connection).$FollowingChr; + $ReplaceData[1][] = $LeadingChr.mysqli_real_escape_string($this->Connection, $Value).$FollowingChr; } } $Query = str_ireplace($ReplaceData[0], $ReplaceData[1], $Query); - $MysqlRes = new MySqlResult(mysqli_query($Query, $this->Connection), $Query); + $MysqlRes = new MySqlResult(mysqli_query($this->Connection, $Query), $Query); return $MysqlRes; }