]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-points.php
Parser error fixed + some empty lines added between table rows (tr)
[mailer.git] / inc / modules / member / what-points.php
index 95cf2b59a93f41484f675b6470d544413f95338b..b18a3d13c692bb4dcd1ccc673d05665516c72a6a 100644 (file)
@@ -52,10 +52,10 @@ if ((!isExtensionActive('user')) && (!isAdmin())) {
 } // END - if
 
 // Query for referral levels and percents
-$result_depths = SQL_QUERY('SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
+$result_depths = sqlQuery('SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
 
 // Get total depths
-$numDepths = SQL_NUMROWS($result_depths);
+$numDepths = sqlNumRows($result_depths);
 
 // Add many more rows for the login/turbo/ref/order bonus
 // @TODO Should we rewrite this to a filter?
@@ -82,7 +82,7 @@ $content['part_locked_order']   = '0.00000';
 $OUT = '';
 
 // Load ref levels
-while ($data = SQL_FETCHARRAY($result_depths)) {
+while ($data = sqlFetchArray($result_depths)) {
        // Init points and counter here
        $content['counter']             = '0';
        $content['points']              = '0.00000';
@@ -100,7 +100,7 @@ while ($data = SQL_FETCHARRAY($result_depths)) {
        } // END - if
 
        // Load referral points
-       $result_points = SQL_QUERY_ESC('SELECT
+       $result_points = sqlQueryEscaped('SELECT
        ' . getAllPointColumns('p.', ',') . '
        `r`.`counter`
 FROM
@@ -120,9 +120,9 @@ LIMIT 1',
                ), __FILE__, __LINE__);
 
        // Is there an entry?
-       if (SQL_NUMROWS($result_points) == 1) {
+       if (sqlNumRows($result_points) == 1) {
                // Load data
-               $content = merge_array($content, SQL_FETCHARRAY($result_points));
+               $content = merge_array($content, sqlFetchArray($result_points));
 
                // Add locked-/points
                $content['part_points']       += $content['points'];
@@ -139,14 +139,14 @@ LIMIT 1',
        } // END - if
 
        // Free result
-       SQL_FREERESULT($result_points);
+       sqlFreeResult($result_points);
 
        // Output row
        $OUT .= loadTemplate('member_points_row', TRUE, $content);
 } // END - while
 
 // Free memory
-SQL_FREERESULT($result_depths);
+sqlFreeResult($result_depths);
 
 // Add userid
 $content['userid'] = getMemberId();