]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/grade_functions.php
Rewrote many parts:
[mailer.git] / inc / libs / grade_functions.php
index ed7bb7f30f60b360f59fbc15cdebdff30056e2ef..42c781db2a6825ff12750706831d148d9a4b416c 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -54,7 +54,7 @@ function generateGradeDataParentIdOptions ($defaultId = NULL) {
                } // END - if
 
                // Look for all
-               $result = SQL_QUERY('SELECT
+               $result = sqlQuery('SELECT
        `grade_id`,
        `grade_name`
 FROM
@@ -68,9 +68,9 @@ ORDER BY
                $gradeValues = array();
 
                // Are there entries?
-               if (!SQL_HASZERONUMS($result)) {
+               if (!ifSqlHasZeroNums($result)) {
                        // Load all entries
-                       while ($grade = SQL_FETCHARRAY($result)) {
+                       while ($grade = sqlFetchArray($result)) {
                                // Add it to arrays
                                array_push($gradeKeys  , $grade['grade_id']);
                                array_push($gradeValues, $grade['grade_name']);
@@ -86,7 +86,7 @@ ORDER BY
                );
 
                // Free result
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
        } // END - if
 
        // Return cache