www.gusucode.com > 4163网博士成品网站管理系统 PHP网站源码程序 > 4163/4163/product/xml/lbxml.php
<?php define("ROOTPATH", "../../"); include(ROOTPATH."includes/common.inc.php"); $g=$_GET["g"]; $arr=explode("|",$g); $catid=$arr[0]; $rp=$arr[1]; echo "<"; echo "?xml "; echo "version='1.0' encoding='utf-8' "; echo "?"; echo ">\n"; echo "<bcaster autoPlayTime='3'>\n"; if($catid == 0){ $msql->query("select * from {P}_product_con order by xuhao limit 0,5"); while($msql->next_record()){ $id=$msql->f('id'); $src=$msql->f('src'); $url="product/html/?".$id.".html"; $src=$rp.$src; echo "<item item_url='".$src."' link='".$url."' itemtitle=''></item>\n"; } } else{ $msql->query("select * from {P}_product_con where catid='$catid' order by xuhao limit 0,5"); while($msql->next_record()){ $id=$msql->f('id'); $src=$msql->f('src'); $url="product/html/?".$id.".html"; $src=$rp.$src; echo "<item item_url='".$src."' link='".$url."' itemtitle=''></item>\n"; } } echo "</bcaster>"; ?>