X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fgrade_functions.php;h=42c781db2a6825ff12750706831d148d9a4b416c;hp=a3dc9067e156d03fe11ac848d33145c2cb9d3773;hb=155492a5b96cec674846973a8524238b0365a848;hpb=da5c63bacddced77a951cbe7b223f314885a6c87 diff --git a/inc/libs/grade_functions.php b/inc/libs/grade_functions.php index a3dc9067e1..42c781db2a 100644 --- a/inc/libs/grade_functions.php +++ b/inc/libs/grade_functions.php @@ -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