diff --git a/application/controllers/Confg.php b/application/controllers/Confg.php index bbb93a2..8c0f343 100644 --- a/application/controllers/Confg.php +++ b/application/controllers/Confg.php @@ -183,7 +183,7 @@ class Confg extends Bko_Controller { //echo "ameye-ameye 22 - ".$countyry_code; if($countyry_code !='' & $action !='' & $action == 1 ){ - $sql1 = "UPDATE country SET allow=now() WHERE code= '$countyry_code' "; + $sql1 = "UPDATE country SET allow=now(), status = 1 WHERE code= '$countyry_code' "; $this->db->query($sql1); echo 'Updated'; } @@ -192,7 +192,7 @@ class Confg extends Bko_Controller { // } if($countyry_code !='' & $action !='' & $action == 0 ){ - $sql1 = "UPDATE country SET allow=NULL WHERE code= '$countyry_code' "; + $sql1 = "UPDATE country SET allow=NULL,status = 0 WHERE code= '$countyry_code' "; $this->db->query($sql1); echo 'Disabled'; }