status = 1

This commit is contained in:
CHIEFSOFT\ameye
2024-05-27 10:21:30 -04:00
parent 0ce4088225
commit 8d6d8793e0
+2 -2
View File
@@ -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';
}