public function changespecstatusAction() { global $mySession; $db = new Db(); $specId = $_REQUEST['Id']; $status = $_REQUEST['Status']; if ($status == '1') { $status = '0'; } else { $status = '1'; } $myObj = new Specification(); $Result = $myObj->statusSpecification($status, $specId); exit; }