选主机收集整理的这篇文章主要介绍了织梦dedecms channel标签中使用php和sql,选主机小编觉得挺不错的,现在分享给大家,也给大家做个参考。
{dede:channel type='son' }
[field:id runphp='yes']
global $dsql;
$sql='Select content from arctype where [email protected]';
$row=$dsql->getone();
……
…..
[/field:id]
{/dede:channel}