- $OUT = ''; $SW = 2;
- foreach (postRequestElement('sel') as $id => $value) {
- $result = SQL_QUERY_ESC("SELECT time, payment, mail_title, price FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
- list($time, $pay, $title, $price) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
+ $OUT = '';
+ foreach (postRequestParameter('sel') as $id => $value) {
+ $result = SQL_QUERY_ESC("SELECT `id`,`time`,`payment`,`mail_title`,`price` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+ $content = SQL_FETCHARRAY($result);