} // END - if
// Let's check if there are some points left we can 'pay'...
-$result = SQL_QUERY_ESC("SELECT
+$result = sqlQueryEscaped("SELECT
`userid`,
".$pointsColumns." AS `points`,
`last_online`
// Reset temporary variable and check for users
$OUT = '';
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
// Load our winners...
$count = 1;
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Prepare data for the template
$content['count'] = $count;
$content['last_online'] = generateDateTime($content['last_online'], '2');
}
// Free memory
-SQL_FREERESULT($result);
+sqlFreeResult($result);
// Prepare content array
$content['rows'] = $OUT;