public function confirmReg($post) { $q = new Query(); $q->table = 'users'; $q->where = array('id' => $post['user_id']); $q->updatearray = array('id' => $post['user_id'], 'active' => 'Y'); $q->change(); $q->table = 'enroll_full'; $q->where = array('enf_id' => $post['enroll_id']); $q->updatearray = array('enf_id' => $post['enroll_id'], 'enf_status' => 'C'); $q->change(); }
function updating($table, $where, $updatearray) { $q = new Query(); $q->table = $table; $q->where = $where; $q->updatearray = $updatearray; $q->change(); }