Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / member / what-beg2.php
index 2ededc22273ce6917ee5c6b65ae436bc42bb7fa8..0ccb815b622ec91872a2f55b0683875b0fe04add 100644 (file)
@@ -60,7 +60,7 @@ if ((isExtensionActive('autopurge')) && (isBegActiveEnabled()) && ((getApInactiv
 } // END - if
 
 // Let's check if there are some points left we can pay...
-$result = SQL_QUERY_ESC("SELECT
+$result = sqlQueryEscaped("SELECT
        `userid`,
        `beg_points`,
        `last_online`
@@ -82,10 +82,10 @@ LIMIT {?beg_ranks?}",
 
 // Reset temporary variable and check for users
 $OUT = '';
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
        // Load our winners...
        $count = 1;
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Prepare data for the template
                $content['count']       = $count;
                $content['last_online'] = generateDateTime($content['last_online'], '2');
@@ -105,7 +105,7 @@ if (!SQL_HASZERONUMS($result)) {
 $content['rows'] = $OUT;
 
 // Free memory
-SQL_FREERESULT($result);
+sqlFreeResult($result);
 
 // Load final template
 loadTemplate('member_list_beg', FALSE, $content);