织梦高级搜索页面advancedsearch

高级搜索页面怎么做???,织梦高级搜索页面advancedsearch,php,advancedsearch自定义搜索页调用自定义字段,下面小编来给大家介绍一下,一起来了解一下吧!

下面跟大家谈的是关于”如何在在高级搜索页面advancedsearch.php调用自定义字段“方法:
 
步骤:
 
找到advancedsearch.php页面。
$query = "select main.id as aid,main.*,main.description as description1, type.* from $maintable main left join dede2_arctype type on type.id=main.typeid left join $addontable addon on addon.aid=main.id $where  $orderby";
改成
$query = "select main.id as aid,main.*,main.description as description1, type.* ,addon.*
    from $maintable main
    left join dede2_arctype type on type.id=main.typeid
    left join $addontable addon on addon.aid=main.id
    $where  $orderby";
 
提示:考虑dede程序性能,如果没必要就不要搜索这些字段了
 

更多教程关注FF推源码网。

提供最优质的资源集合

立即查看 了解详情