// Order placed in queue...
$result = SQL_QUERY_ESC("SELECT
- po.url, po.subject, po.sender, pay.payment, po.payment_id
+ po.`url`, po.`subject`, po.`sender`, pay.`payment`, po.`payment_id`
FROM
- `{?_MYSQL_PREFIX?}_pool` AS po
+ `{?_MYSQL_PREFIX?}_pool` AS `po`
INNER JOIN
- `{?_MYSQL_PREFIX?}_payments` AS pay
+ `{?_MYSQL_PREFIX?}_payments` AS `pay`
ON
- po.payment_id=pay.id
+ po.`payment_id`=pay.`id`
WHERE
- po.id=%s
+ po.`id`=%s
LIMIT 1",
array($id), __FILE__, __LINE__);
sendEmail($content['sender'], '{--MEMBER_ORDER_REJECTED--}', $message_user);
// If you do not enter an URL to redirect to, your URL will be set!
- if ((!isPostRequestParameterSet('redirect')) || (postRequestParameter('redirect') == 'http://')) setPostRequestParameter('redirect', getUrl());
+ if ((!isPostRequestParameterSet('redirect')) || (postRequestParameter('redirect') == 'http://')) {
+ setPostRequestParameter('redirect', getUrl());
+ } // END - if
// Redirect URL
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET url='%s', `data_type`='NEW' WHERE `id`=%s LIMIT 1",
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `url`='%s', `data_type`='NEW' WHERE `id`=%s LIMIT 1",
array(postRequestParameter('redirect'), $id),__FILE__, __LINE__);
// Prepare data for the row template