} // END - if
// Check for all referrals
- $result = SQL_QUERY_ESC("SELECT
+ $result = sqlQueryEscaped("SELECT
COUNT(`d`.`userid`) AS `cnt`
FROM
`{?_MYSQL_PREFIX?}_user_data` AS `d`
), __FUNCTION__, __LINE__);
// Load count
- list($GLOBALS[__FUNCTION__][$userid][$level]) = SQL_FETCHROW($result);
+ list($GLOBALS[__FUNCTION__][$userid][$level]) = sqlFetchRow($result);
// Free result
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
} // END - if
// Return it
}
// Wrapper function for SQL layer to speed-up things
-function SQL_DEBUG_ENABLED () {
+function isSqlDebugEnabled () {
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it