]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_newsletter.php
Opps, not all elements for sprintf() has been set.
[mailer.git] / inc / modules / admin / what-send_newsletter.php
index 79d2a15ba769ecf38a3ab5df5c870c5ba3ca4856..99a9eb1c8feeeef7e380892a1d5fa469e6657d49 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
-       $result = SQL_QUERY("SELECT
+       $result = sqlQuery("SELECT
        `userid`,
        `email`
 FROM
@@ -54,9 +54,9 @@ WHERE
        `nl_receive`='Y'
 ORDER BY
        `userid` ASC", __FILE__, __LINE__);
-       if (!SQL_HASZERONUMS($result)) {
+       if (!ifSqlHasZeroNums($result)) {
                // Members are available so we can send out the newsletter!
-               while ($content = SQL_FETCHARRAY($result)) {
+               while ($content = sqlFetchArray($result)) {
                        // Construct mail...
                        $template = 'newsletter';
 
@@ -84,7 +84,7 @@ ORDER BY
        } // END - if
 
        // Free memory
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 } else {
        // Copy data into constants for the template and load it
        $content['datestamp'] = generateDateTime(time(), 3);