]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_register.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-config_register.php
index 9f5a16ecfeeff248b49cf5457677ebae2ca47ba6..8bf825c80b1d788340f6e91f308c1d4637c20af6 100644 (file)
@@ -51,7 +51,7 @@ if (isFormSent('save_config')) {
        // Update all entries
        foreach (postRequestElement('sel') as $id => $value) {
                // Update database
-               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_must_register` SET `field_required`='%s' WHERE `id`=%s AND `field_required` != '%s' LIMIT 1",
+               sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_must_register` SET `field_required`='%s' WHERE `id`=%s AND `field_required` != '%s' LIMIT 1",
                        array(
                                $value,
                                bigintval($id),
@@ -59,7 +59,7 @@ if (isFormSent('save_config')) {
                        ),__FILE__, __LINE__);
 
                // Get affected rows
-               $count += SQL_AFFECTEDROWS();
+               $count += sqlAffectedRows();
        } // END - foreach
 
        // Output message for updated entries
@@ -67,9 +67,9 @@ if (isFormSent('save_config')) {
 } // END - if
 
 // List all register values
-$result = SQL_QUERY("SELECT `id`, `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
+$result = sqlQuery("SELECT `id`, `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
 $OUT = '';
-while ($content = SQL_FETCHARRAY($result)) {
+while ($content = sqlFetchArray($result)) {
        // Get language string
        $content['field_name'] = '{--' . strtoupper($content['field_name']) . '--}';
 
@@ -81,7 +81,7 @@ while ($content = SQL_FETCHARRAY($result)) {
 } // END - while
 
 // Free memory
-SQL_FREERESULT($result);
+sqlFreeResult($result);
 
 // Load template
 loadTemplate('admin_config_register', FALSE, $OUT);