-
{pc:get sql="SELECT * FROM v9_page where catid=所要调用的catid号"}
-
{loop $data $key $val}
-
{$val[content]}
-
{/loop}
-
{/pc}
-
调部分
-
{pc:get sql="SELECT * FROM v9_page where catid=30"}
-
{loop $data $val}
-
{str_cut(strip_tags($val[content]),400,"")}...
-
{/loop}
-
{/pc}上面从网上找来的,但我用会报错,不知道是我的原因还是什么
{pc:get sql="SELECT * FROM phpcms_page where catid=16"} {loop $data $val} {$val[content]} {/loop} {/pc}