]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor_pays.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-list_sponsor_pays.php
index ca5d8cd963c4754cd996456cf64055df8cb3a311..e8c5919951210093f51a64cfb3f7d686cfab211b 100644 (file)
@@ -45,12 +45,12 @@ addYouAreHereLink('admin', __FILE__);
 
 if (isGetRequestElementSet('id')) {
        // Check for selected sponsor
-       $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
+       $result = sqlQueryEscaped("SELECT `id` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `id`=%s LIMIT 1",
        array(bigintval(getRequestElement('id'))), __FILE__, __LINE__);
-       if (SQL_NUMROWS($result) == 1) {
+       if (sqlNumRows($result) == 1) {
                // ...
                // Free memory
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
        } else {
                // Sponsor not found
                displayMessage('{%message,ADMIN_SPONSOR_404=' . bigintval(getRequestElement('id')) . '%}');