$sel) { // First of all load data from DB $result = SQL_QUERY_ESC("SELECT `admin_id`,`id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC", array($template), __FILE__, __LINE__); $OUT = ''; $adminId2 = '0'; $id = '0'; while ($content = SQL_FETCHARRAY($result)) { // @TODO Can this be rewritten to an API function? $OUT .= '