]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_payouts.php
Mailer project continued:
[mailer.git] / inc / modules / admin / what-config_payouts.php
index 43d6d7354dd7a02dafcd1ead2726b9f5306d8a28..11d986d4077b6364d39cd92ff226681b2fc844ab 100644 (file)
@@ -53,7 +53,7 @@ if ((isFormSent('add')) && (isPostRequestElementSet('title')) && (postRequestEle
                SQL_QUERY_ESC("INSERT INTO
        `{?_MYSQL_PREFIX?}_payout_types`
 (
-       `type`,`rate`,`min_points`,`from_account`,`from_pass`,`engine_url`,`engine_ret_ok`,`engine_ret_failed`,`pass_enc`,`allow_url`
+       `type`, `rate`, `min_points`, `from_account`, `from_pass`, `engine_url`, `engine_ret_ok`, `engine_ret_failed`, `pass_enc`, `allow_url`
 ) VALUES (
        '%s', %s, %s,'%s','%s','%s','%s','%s','%s','%s'
 )",
@@ -91,7 +91,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        $OUT = '';
        foreach (postRequestElement('sel') as $id => $sel) {
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`,`type`,`rate`,`min_points`,`allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points`, `allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -149,7 +149,7 @@ LIMIT 1",
                $id = bigintval($id);
 
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`,`type`,`rate`,`min_points` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                        array($id), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -183,12 +183,16 @@ if (!empty($message)) {
 } // END - if
 
 // Payout types
-$result_type = SQL_QUERY("SELECT
-       `id`,`type`,`rate`,`min_points`,`from_account`
+$result_type = SQL_QUERY('SELECT
+       `id`,
+       `type`,
+       `rate`,
+       `min_points`,
+       `from_account`
 FROM
        `{?_MYSQL_PREFIX?}_payout_types`
 ORDER BY
-       `type` ASC", __FILE__, __LINE__);
+       `type` ASC', __FILE__, __LINE__);
 
 if ((!SQL_HASZERONUMS($result_type)) && ($display)) {
        // List all payout types