parent
85a1b3f582
commit
9506b105b2
|
@ -15,7 +15,7 @@
|
||||||
{
|
{
|
||||||
$this->Connection = mysqli_connect($Server, $User, $Pass);
|
$this->Connection = mysqli_connect($Server, $User, $Pass);
|
||||||
if ($Database != null)
|
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)");
|
$this->query("CREATE TABLE IF NOT EXISTS _datastore (id VARCHAR(64) PRIMARY KEY, data TEXT)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public function close()
|
public function close()
|
||||||
{mysql_close($this->Connection);}
|
{mysqli_close($this->Connection);}
|
||||||
|
|
||||||
public function ping()
|
public function ping()
|
||||||
{return mysqli_ping($this->Connection);}
|
{return mysqli_ping($this->Connection);}
|
||||||
|
@ -65,11 +65,11 @@
|
||||||
}
|
}
|
||||||
if ($InQueryPos + strlen("{".$Key."}") >= strlen($Query)) {$FollowingChr = "'";}
|
if ($InQueryPos + strlen("{".$Key."}") >= strlen($Query)) {$FollowingChr = "'";}
|
||||||
$ReplaceData[0][] = "{".$Key."}";
|
$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);
|
$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;
|
return $MysqlRes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue