diff --git a/app/Controllers/Employment.php b/app/Controllers/Employment.php index 51d2ab5..3c6dcf5 100644 --- a/app/Controllers/Employment.php +++ b/app/Controllers/Employment.php @@ -90,7 +90,21 @@ class Employment extends BaseController log_message('error', "updateVerifyQr ----- updateVerifyQr -->" . $updateVerifyQr); $this->db->query($updateVerifyQr); - + + $sqlU = "SELECT * FROM employer_checks WHERE uid= '".$data['verify_uid']."'"; + $query = $this->db->query( $sqlU ); + $row = $query->getResult('array'); + if ( $row[0]){ + $out = $row[0]; + $sqlApplication = "UPDATE applications SET status = 3 + WHERE status = 2 + AND uid= '".$out["application_uid"]."' "; + $this->db->query($sqlApplication); + } + + + + $row =[]; $data = [ 'call_return' => '100',