phpcms v9用get-sql调用表数据表中的图组图片
2022-07-04 17:42:29 来源: 评论:0 点击:
{pc:get sql="SELECT pictureurls FROM phpcms_picture_data where id = $id" start="0" num="30" return="pictureurls" }{loo
{pc:get sql="SELECT pictureurls FROM phpcms_picture_data where id = $id" start="0" num="30" return="pictureurls" }
{loop $pictureurls $pic_k $r}
{php $a=string2array($r[pictureurls])}
{loop $a $pic_l $v}
<img src="{$v['url']}" longdesc="{$v['url']}" alt="{$v['alt']}" />
{/loop}
{/loop}
{/pc}
{loop $pictureurls $pic_k $r}
{php $a=string2array($r[pictureurls])}
{loop $a $pic_l $v}
<img src="{$v['url']}" longdesc="{$v['url']}" alt="{$v['alt']}" />
{/loop}
{/loop}
{/pc}
相关热词搜索:
分享到:
收藏

评论排行
- ·西部数码SSL部署怎么关闭(1)