帝国CMS7.0商城内容页调用该商品的购买记录,以下是思路代码。
[e:loop={"select * from phome_enewsmemberadd where userid in (select userid from phome_enewsshopdd where ddid in (select ddid from phome_enewsshopdd_add where buycar like '%|$navinfor[classid],$navinfor[id]|%') )",10,24,0}] <li><a href="/e/space/?userid=<?=$bqr[userid]?>" ><img src="<?=$bqr[userpic]?>" alt="<?=$bqr[truename]?>" border="0" width="88" height="77" /></a> <p><?=$bqr[truename]?></p> </li> [/e:loop]
本文转载自:精准像素:11px.cn ,感谢作者分享实用知识