织梦CMS channel标签中使用php和sql

分类:标签语法教程 发布时间:2019-05-27 21:44:00

摘要:织梦CMS channel标签中如何&怎么使用php和sql?dede channel标签中使用php和sql教程&方法,适用于织梦5.7

  1. {dede:channel type='son' }
  2. [field:id runphp='yes']
  3. global $dsql;
  4. $sql='Select content from arctype where id=@me';
  5. $row=$dsql->getone();
  6. ......
  7. .....
  8. [/field:id]
  9. {/dede:channel}