* $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 *
} // END - if
// Load all referral levels
-$result = SQL_QUERY('SELECT
- r.`level`,
- r.`percents`
+$result = sqlQuery('SELECT
+ `r`.`level`,
+ `r`.`percents`
FROM
- `{?_MYSQL_PREFIX?}_refdepths` AS r
+ `{?_MYSQL_PREFIX?}_refdepths` AS `r`
WHERE
- r.level > 0
+ `r`.`level` > 0
ORDER BY
- r.level ASC', __FILE__, __LINE__);
+ `r`.`level` ASC', __FILE__, __LINE__);
// Are there some entries? (Shall be!)
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
// List all levels
$OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Init variables
$rows = '';
$content['counter'] = 0;
} // END - if
// Add/"translate" more content
- $refRow['click_rate'] = translateComma($refRow['click_rate'], TRUE, 1);
- $refRow['joined'] = generateDateTime($refRow['joined'], '3');
+ $refRow['joined'] = generateDateTime($refRow['joined'], '3');
// Load row template
if ($deleted === TRUE) {
}
// Free result
-SQL_FREERESULT($result);
+sqlFreeResult($result);
// [EOF]
?>