[guadec-web] Correcting table name(registrations), again ah



commit b7730b3d3520c63ada7dd62faddbb70c0b98c458
Author: Saumya Dwivedi <saumya zero gmail com>
Date:   Tue Jul 8 14:51:22 2014 +0530

    Correcting table name(registrations), again ah

 guadec/access-register.php |    6 +++---
 guadec/ipnlistener.php     |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/guadec/access-register.php b/guadec/access-register.php
index 4872bdb..123c485 100644
--- a/guadec/access-register.php
+++ b/guadec/access-register.php
@@ -42,15 +42,15 @@ else{
        
        if(isset($_POST['viewtype']) && !empty($_POST['viewtype'])) {
            $action = $_POST['viewtype'];
-          // $table_name = $wpdb->prefix .'guadec2014_registration';
+          // $table_name = $wpdb->prefix .'guadec2014_registrations';
            switch($action) {
 
                case 'showall' :
-                   $result = $wpdb->get_results('SELECT * FROM wp_guadec2014_registration', ARRAY_A);
+                   $result = $wpdb->get_results('SELECT * FROM wp_guadec2014_registrations', ARRAY_A);
                        echo display_result($result);
                        break;
                case 'showcomplete' :
-                       $result = $wpdb->get_results("SELECT * FROM wp_guadec2014_registration WHERE payment 
= 'Completed' OR payment ='NoPayment'", ARRAY_A);
+                       $result = $wpdb->get_results("SELECT * FROM wp_guadec2014_registrations WHERE payment 
= 'Completed' OR payment ='NoPayment'", ARRAY_A);
                        echo display_result($result);
                        break;
                    
diff --git a/guadec/ipnlistener.php b/guadec/ipnlistener.php
index de4b679..281a607 100755
--- a/guadec/ipnlistener.php
+++ b/guadec/ipnlistener.php
@@ -311,7 +311,7 @@ class IpnListener {
     }
     public function updateCompleted($reg_email='dummy mail com') {
     
-        $table_name = $wpdb->prefix .'guadec2014_registration';
+        $table_name = $wpdb->prefix .'guadec2014_registrations';
      //   error_log($table_name);     // check if the wpdb is accessible
         $up = $wpdb->update(
         $table_name,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]