addYouAreHereLink('admin', __FILE__);
// Go through all categories
-$result = SQL_QUERY("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_cats` GROUP BY `userid` ORDER BY `userid` ASC", __FILE__, __LINE__);
-if (!SQL_HASZERONUMS($result)) {
+$result = sqlQuery("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_cats` GROUP BY `userid` ORDER BY `userid` ASC", __FILE__, __LINE__);
+if (!ifSqlHasZeroNums($result)) {
// Nothing is removed for now... ;-)
$removedRows = '0';
// Check if found userid is also found in user_data table
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Is the account not there?
if (!fetchUserData($content['userid'])) {
// Ok, we found something to remove
- SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s",
+ sqlQueryEscaped("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s",
array(bigintval($content['userid'])), __FILE__, __LINE__);
- $removedRows += SQL_AFFECTEDROWS();
+ $removedRows += sqlAffectedRows();
} // END - if
} // END - while