} // END - if
// Check for all earnings
-$result = SQL_QUERY('SELECT
+$result = sqlQuery('SELECT
`d`.`earning_id`,
`d`.`earning_group`,
`d`.`earning_provider`
`d`.`earning_sorting` ASC', __FILE__, __LINE__);
// Are there entries?
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
// Init output
$OUT = '';
// List all entries
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Load user_earning data
- $result2 = SQL_QUERY_ESC('SELECT
+ $result2 = sqlQueryEscaped('SELECT
`u`.`earning_active`,
UNIX_TIMESTAMP(`u`.`earning_added`) AS `earning_added`,
UNIX_TIMESTAMP(`u`.`earning_canceled`) AS `earning_canceled`,
), __FILE__, __LINE__);
// Is there an entry?
- if (SQL_NUMROWS($result2) == 1) {
+ if (sqlNumRows($result2) == 1) {
// Load it
- $content = merge_array($content, SQL_FETCHARRAY($result2));
+ $content = merge_array($content, sqlFetchArray($result2));
} // END - if
// Free result
- SQL_FREERESULT($result2);
+ sqlFreeResult($result2);
// Is there user_earning data available?
if (!isset($content['earning_active'])) {
}
// Free result
-SQL_FREERESULT($result);
+sqlFreeResult($result);
// [EOF]
?>