downpath如果在副表:
$ff=$empire->fetch1("select downpath from{$dbtbpre}ecms_download_data_'$r[stb]' where id='$r[id]' limit 1"); $down=explode(egetzy('rn'),$ff['downpath']); $count = count($down); $sum = 0; for($i = 0; $i <$count; $i++) { $fr = explode("::::::", $down[$i]); $sum += $fr[3]; } $listtemp=' <li><a href="[!--titleurl--]" title="[!--title--]'.$sum.'" target="_blank"><img class="lazy" data-original="[!--titlepic--]" width="500" height="330" alt=""/><span>[!--title--]'.$count.'</span></a></li>';
downpath如果在主表:
$down=explode(egetzy('rn'),$r['downpath']); $count = count($down); $sum = 0; for($i = 0; $i <$count; $i++) { $fr = explode("::::::", $down[$i]); $sum += $fr[3]; } $listtemp=' <li><a href="[!--titleurl--]" title="[!--title--]'.$sum.'" target="_blank"><img class="lazy" data-original="[!--titlepic--]" width="500" height="330" alt=""/><span>[!--title--]'.$count.'</span></a></li>';
标签: