]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user_amounts.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-list_user_amounts.php
index 61ee22a5fb5a5e16ff134e8499a8c6e38d4e49cd..88f25ca9ab79bfa032a1419c54f27a723ff532dd 100644 (file)
@@ -54,7 +54,7 @@ foreach (runFilterChain('locked_points_columns_array', array('points')) as $colu
 $sql = substr($sql, 0, -1);
 
 // Run the query to obtain all user's amounts (regardless of their status)
-$result = SQL_QUERY('SELECT
+$result = sqlQuery('SELECT
        `p`.`userid`,
        SUM(
                ' . $sql . ' -
@@ -72,13 +72,13 @@ ORDER BY
        `p`.`userid` ASC', __FILE__, __LINE__);
 
 // Are there entries? (sorry, the XML functions cannot "produce" the above SQL statement)
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
        // Init amounts and points
        $totalPoints = '0';
        $amounts = array();
 
        // Then load all
-       while ($row = SQL_FETCHARRAY($result)) {
+       while ($row = sqlFetchArray($result)) {
                // Add it
                $amounts[$row['userid']] = $row;
                $totalPoints            += $row['points'];
@@ -107,7 +107,7 @@ if (!SQL_HASZERONUMS($result)) {
 }
 
 // Free result
-SQL_FREERESULT($result);
+sqlFreeResult($result);
 
 // [EOF]
 ?>