protected function OAuthStoreMySQL::query_one in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/store/OAuthStoreMySQL.php \OAuthStoreMySQL::query_one()
- 7.3 lib/oauth-php/library/store/OAuthStoreMySQL.php \OAuthStoreMySQL::query_one()
- 7.4 lib/oauth-php/library/store/OAuthStoreMySQL.php \OAuthStoreMySQL::query_one()
- 7.5 lib/oauth-php/library/store/OAuthStoreMySQL.php \OAuthStoreMySQL::query_one()
- 7.6 lib/oauth-php/library/store/OAuthStoreMySQL.php \OAuthStoreMySQL::query_one()
* Perform a query, return the first column of the first row * *
Parameters
string sql: * @param vararg arguments (for sprintf) * @return mixed
Overrides OAuthStoreSQL::query_one
2 methods override OAuthStoreMySQL::query_one()
- OAuthStoreAnymeta::query_one in lib/
oauth-php/ library/ store/ OAuthStoreAnyMeta.php - * Perform a query, return the first column of the first row * *
- OAuthStoreMySQLi::query_one in lib/
oauth-php/ library/ store/ OAuthStoreMySQLi.php - * Perform a query, return the first column of the first row * *
File
- lib/
oauth-php/ library/ store/ OAuthStoreMySQL.php, line 162
Class
Code
protected function query_one($sql) {
$sql = $this
->sql_printf(func_get_args());
if (!($res = mysql_query($sql, $this->conn))) {
$this
->sql_errcheck($sql);
}
$val = @mysql_result($res, 0, 0);
mysql_free_result($res);
return $val;
}