where($condition)->find(); return $addr_info; } public function updateInfo($update, $condition) { return Db::name('memberinfo')->where($condition)->update($update); } public function addInfo($data) { return Db::name('memberinfo')->insert($data); } } ?>