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