Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-edit_user.php
index 0e5686fba02a925d1c9eb1231add5946e20fb651..c038b5c5f0eb784c2e0a3a2131a7c3f0367331d0 100644 (file)
@@ -49,7 +49,7 @@ addYouAreHereLink('admin', __FILE__);
 $result_main = FALSE;
 if (isGetRequestElementSet('userid')) {
        // Load user entry
-       $result_main = SQL_QUERY_ESC("SELECT
+       $result_main = sqlQueryEscaped("SELECT
        `userid`, `gender`, `surname`, `family`, `street_nr`, `zip`, `city`, `country`,
        `email`,
        `birth_day`, `birth_month`, `birth_year`,
@@ -64,7 +64,7 @@ LIMIT 1",
                ), __FILE__, __LINE__);
 } // END - if
 
-if ((!isGetRequestElementSet('userid')) || (SQL_NUMROWS($result_main) == 1)) {
+if ((!isGetRequestElementSet('userid')) || (sqlNumRows($result_main) == 1)) {
        // User found
        if (!isGetRequestElementSet('userid')) {
                // Output selection form with all confirmed user accounts listed
@@ -83,7 +83,7 @@ if ((!isGetRequestElementSet('userid')) || (SQL_NUMROWS($result_main) == 1)) {
 
                if ($updateUser === TRUE) {
                        // We have to add the following things: birthday and max receive mails
-                       SQL_QUERY_ESC("UPDATE
+                       sqlQueryEscaped("UPDATE
        `{?_MYSQL_PREFIX?}_user_data`
 SET
        `gender`='%s',
@@ -119,7 +119,7 @@ LIMIT 1",
                displayMessage($content);
        } else {
                // Load entry
-               $content = SQL_FETCHARRAY($result_main);
+               $content = sqlFetchArray($result_main);
 
                // Load template
                loadTemplate('admin_edit_user', FALSE, $content);
@@ -130,7 +130,7 @@ LIMIT 1",
 }
 
 // Free the result
-SQL_FREERESULT($result_main);
+sqlFreeResult($result_main);
 
 // [EOF]
 ?>