代码如下:
{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']}" />
这样就输出了对应id的那组图了。