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