X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_coupon.php;h=aee069dce0be8508315cb73d8d8a1247b646d3cd;hb=e9da1508b2a3ccbf63adc999981674740a47e074;hp=05a4134d8a0d05fcda8ad335b47c21d00ca30458;hpb=4f7df133f736da124e6f7bd02008b9093f736451;p=mailer.git diff --git a/inc/modules/admin/what-list_coupon.php b/inc/modules/admin/what-list_coupon.php index 05a4134d8a..aee069dce0 100644 --- a/inc/modules/admin/what-list_coupon.php +++ b/inc/modules/admin/what-list_coupon.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__); if (isGetRequestElementSet('coupon_id')) { // List userids for given coupon - $result = SQL_QUERY_ESC('SELECT + $result = sqlQueryEscaped('SELECT `u`.`coupon_id`, `u`.`userid`, UNIX_TIMESTAMP(`u`.`cashed_on`) AS `cashed_on`, @@ -70,12 +70,12 @@ ORDER BY ), __FILE__, __LINE__); // Are there entries? - if (!SQL_HASZERONUMS($result)) { + if (!ifSqlHasZeroNums($result)) { // Init variable $OUT = ''; // Load all rows - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Translate all timestamps $content['cashed_on'] = generateDateTime($content['cashed_on'] , '2'); $content['coupon_created'] = generateDateTime($content['coupon_created'], '2'); @@ -93,10 +93,10 @@ ORDER BY } // Free result - SQL_FREERESULT($result); + sqlFreeResult($result); } else { // Check if the user has cashed coupons - $result = SQL_QUERY('SELECT + $result = sqlQuery('SELECT `d`.`id` AS `coupon_id`, UNIX_TIMESTAMP(`d`.`coupon_created`) AS `coupon_created`, UNIX_TIMESTAMP(`d`.`coupon_expired`) AS `coupon_expired`, @@ -110,12 +110,12 @@ ORDER BY `d`.`id` ASC', __FILE__, __LINE__); // Are there entries? - if (!SQL_HASZERONUMS($result)) { + if (!ifSqlHasZeroNums($result)) { // Init variable $OUT = ''; // Load all rows - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Translate all timestamps $content['coupon_created'] = generateDateTime($content['coupon_created'], '2'); $content['coupon_expired'] = generateDateTime($content['coupon_expired'], '2'); @@ -132,7 +132,7 @@ ORDER BY } // Free result - SQL_FREERESULT($result); + sqlFreeResult($result); } // [EOF]