Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / libs / grade_functions.php
index a3dc9067e156d03fe11ac848d33145c2cb9d3773..42c781db2a6825ff12750706831d148d9a4b416c 100644 (file)
@@ -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