* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
if (isAdmin()) $whereStatement = '';
// Get all categories
-$result = SQL_QUERY('SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats`' . $whereStatement . ' ORDER BY `sort` ASC', __FILE__, __LINE__);
+$result = sqlQuery('SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats`' . $whereStatement . ' ORDER BY `sort` ASC', __FILE__, __LINE__);
// Are there entries?
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
$LEAST = FALSE;
if (isFormSent()) {
$count = '0';
if ($joined != 'Y') $count++;
} // END - foreach
- if ((SQL_NUMROWS($result) - $count) < getLeastCats()) {
+ if ((sqlNumRows($result) - $count) < getLeastCats()) {
unsetPostRequestElement('ok');
$LEAST = TRUE;
} // END - if
// Load all categories of this member
$OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Default he has not joined, add color switch
$content['jn'] = ' checked="checked"';
$content['jy'] = '';
} // END - while
// Free result
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Load footer template
loadTemplate('member_cats', FALSE, $OUT);
}
// Free result
-SQL_FREERESULT($result);
+sqlFreeResult($result);
// [EOF]
?>