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; }