db_smartone = $this->load->database("onedev", true); } public function calc_age() { $prm = $this->sys_input; $orderID = $prm["orderID"]; $sql = "call sp_recount_age(?)"; $query = $this->db_smartone->query($sql,array($orderID)); if ($query) { $this->sys_ok("OK"); } else { $this->sys_error_db("", $this->db_smartone); exit; } } }