dede 关于自定义属性的 sql查询,该如何处理

WBOY
Release: 2016-06-13 13:41:50
Original
1106 people have browsed it

dede 关于自定义属性的 sql查询
自己增加了一个自定义属性flag 里面增加了一个w

$sql="SELECT * FROM ps_archives a,ps_addonarticle b where a.channel='1' and a.id=b.aid and a.typeid in(select id from ps_arctype where topid in(1,22,26)) and a.flag like '%w%' “;

在数据可以查询出来、但是写在{dede:php}{/dede:php}里面就不行了,

把w换成原始的属性a等、就可以查询出来、



------解决方案--------------------
应该是在{dede:sql}{/dede:sql} 这个里面吧
------解决方案--------------------
这只能说你数据表里没有含有w值的数据

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!