- $result = SQL_QUERY_ESC("SELECT id, type, rate, min_points
-FROM `{!_MYSQL_PREFIX!}_payout_types`
-WHERE %s >= min_points
-ORDER BY type", array($points), __FUNCTION__, __LINE__);
- if (SQL_NUMROWS($result) > 0) {
- OUTPUT_HTML("<br /><div align=\"center\">
-<div align=\"center\"><strong>{--PAYOUT_NOW--}:</strong></div><br />
-<ul>");
- // Now let's check
- while ($content = SQL_FETCHARRAY($result)) {
- // Compile the type
- $content['type'] = COMPILE_CODE($content['type']);
+ $result = sqlQueryEscaped('SELECT
+ `id`,
+ `type`,
+ `rate`,
+ `min_points`
+FROM
+ `{?_MYSQL_PREFIX?}_payout_types`
+WHERE
+ %s >= `min_points`
+ORDER BY
+ `type` ASC',
+ array($points), __FUNCTION__, __LINE__);