protected function OAuthStoreMySQLi::query in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/store/OAuthStoreMySQLi.php \OAuthStoreMySQLi::query()
- 7.3 lib/oauth-php/library/store/OAuthStoreMySQLi.php \OAuthStoreMySQLi::query()
- 7.4 lib/oauth-php/library/store/OAuthStoreMySQLi.php \OAuthStoreMySQLi::query()
- 7.5 lib/oauth-php/library/store/OAuthStoreMySQLi.php \OAuthStoreMySQLi::query()
- 7.6 lib/oauth-php/library/store/OAuthStoreMySQLi.php \OAuthStoreMySQLi::query()
* Perform a query, ignore the results * *
Parameters
string sql: * @param vararg arguments (for sprintf)
Overrides OAuthStoreMySQL::query
2 calls to OAuthStoreMySQLi::query()
- OAuthStoreMySQLi::install in lib/
oauth-php/ library/ store/ OAuthStoreMySQLi.php - * Initialise the database
- OAuthStoreMySQLi::__construct in lib/
oauth-php/ library/ store/ OAuthStoreMySQLi.php - * Construct the OAuthStoreMySQLi. * In the options you have to supply either: * - server, username, password and database (for a mysqli_connect) * - conn (for the connection to be used) * *
File
- lib/
oauth-php/ library/ store/ OAuthStoreMySQLi.php, line 117
Class
Code
protected function query($sql) {
$sql = $this
->sql_printf(func_get_args());
if (!($res = mysqli_query($this->conn, $sql))) {
$this
->sql_errcheck($sql);
}
if (!is_bool($res)) {
mysqli_free_result($res) || is_object($res) && get_class($res) == "mysqli_result" ? true : false;
}
}