addYouAreHereLink('admin', __FILE__);
// Start listing holiday requests
-$result = SQL_QUERY("SELECT
+$result = sqlQuery("SELECT
`h`.`id`,
`h`.`userid`,
`h`.`holiday_start`,
ORDER BY
`h`.`userid` ASC", __FILE__, __LINE__);
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
// List all holiday requests
$OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Prepare data for the row template
$content = array(
'id' => $content['id'],
} // END - while
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Load main template
loadTemplate('admin_list_holiday', FALSE, $OUT);