时间:2021-07-01 10:21:17 帮助过:5人阅读
while(list($key ,$value)=each($rs)){ //$rs为数据库里的电视剧分集数组 echo $value['s_num']; foreach ( $info as $keys => $v){ //$info为分集内容数组。 echo $keys."
"; if($value['s_num'] == $keys){ //$value['s_num']为集数 $option['table'] = $this->module->getTableName('ms_series_info'); $option['data']['s_description'] = $v; $option['where'][] = 's_num ='.$keys; $option['where'][] = 's_id = '.$id; $s = $this->module->update($option); if($s){ break; } } $option=''; } }