www.gusucode.com > 3018网博士成品网站管理系统 PHP网站源码程序 > 3018/3018/update/20120412/product/module/ProductMyCat.php
<?php function ProductMyCat(){ global $fsql,$tsql; $tempname=$GLOBALS["PLUSVARS"]["tempname"]; $memberid=$_COOKIE["MEMBERID"]; $memberid=htmlspecialchars($memberid); //模板解释 $Temp=LoadTemp($tempname); $TempArr=SplitTblTemp($Temp); $str=$TempArr["start"]; $fsql->query("select * from {P}_product_pcat where memberid='$memberid' order by xuhao "); while($fsql->next_record()){ $catid=$fsql->f('catid'); $cat=$fsql->f('cat'); $xuhao=$fsql->f('xuhao'); $var=array ( 'catid' => $catid, 'cat' => $cat, 'xuhao' => $xuhao ); $str.=ShowTplTemp($TempArr["list"],$var); } $str.=$TempArr["end"]; return $str; } ?>