谁帮忙看看 这个代码为什么不会循环
程序员文章站
2024-02-09 14:17:16
...
queryByKeyword($_MODULE[guanjianzi],$_MODULE[paixu],$_MODULE[geshu]); break; case "2": $arr = explode(',',$_MODULE[item_1]); foreach($arr as $value){ $item=$itemManager-> queryById ($value); array_push($items, $item); } break; case "3": $arr = explode(',',$_MODULE[cate_1]); $items = $itemManager->queryByCategory($categoryId,$_MODULE["paixu"],$_MODULE["geshu"]); break; case "4": $srtpdz = explode(",",$_MODULE["srtpdz"]); $srtpljdz = explode(",",$_MODULE["srtpljdz"]); $srbbbt = explode(",",$_MODULE["srbbbt"]); $srbbjg = explode(",",$_MODULE["srbbjg"]); $srxssl = explode(",",$_MODULE["srxssl"]); break;}if($_MODULE[huoqubaobei]!="4"){ $i=-1; foreach($items as $item){ $i++; $itemUrl = $uriManager->detailURI($item); $itemPicUrl = $item->getPicUrl(310); $itemTitle = $item->title; $itemPrice = $item->price; $itemsoldCount = $item->soldCount; echo''; }}?>'; }}else if($_MODULE[huoqubaobei]=="4"){ $num = count($srtpdz); for($i=0;$i
上一篇: 学习Oracle需要掌握的重要知识点
推荐阅读