有没有办法调取出标题包含中国并且包含美国的文章呢?
大家好,我想问下,这个相关调取{related module=news tag=中国,美国 num=55}
是调取的标题包含中国,或者美国的文章。
有没有办法调取出标题包含中国并且包含美国的文章呢?
SQL: SELECT * FROM `dr_1_news` WHERE ((`dr_1_news`.`title` LIKE "%中国%" OR `dr_1_news`.`keywords` LIKE "%中国%") OR (`dr_1_news`.`title` LIKE "%美国%" OR `dr_1_news`.`keywords` LIKE "%美国%")) AND `dr_1_news`.`status` = 9 ORDER BY `dr_1_news`.`updatetime` DESC LIMIT 55开发模式:已关闭数据缓存:未设置分页功能:未开启
{php
$arr=[];
foreach ($tags as $name=>$u) {
$arr[]= " title like '%".$name."%' ";
}
$where=urlencode(implode(" and ", $arr));}
{module module=news where=$where num=55}
<?php defined('SYSTEMPATH') || exit('No direct script access allowed'); ?> CRITICAL - 2020-11-13 10:37:01 --> syntax error, unexpected '}', expecting end of file #SQL:SELECT * FROM `dr_1_tag` WHERE `pid` = '21' ORDER BY `displayorder` DESC, `id` ASC #URL:https://www.songliwuba.cn/topic/3 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/9 #0 /www/wwwroot/songliwu.cn/dayrui/App/Tag/Controllers/Home.php(81): Phpcmf\View->display('tag.html') #1 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Home->index() #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Home)) #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #5 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #6 {main} CRITICAL - 2020-11-13 10:37:42 --> syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) #SQL:SELECT * FROM `dr_1_tag` WHERE `pid` = '21' ORDER BY `displayorder` DESC, `id` ASC #URL:https://www.songliwuba.cn/topic/3 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/9 #0 /www/wwwroot/songliwu.cn/dayrui/App/Tag/Controllers/Home.php(81): Phpcmf\View->display('tag.html') #1 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Home->index() #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Home)) #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #5 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #6 {main} CRITICAL - 2020-11-13 10:38:37 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_tag` WHERE `pid` = '21' ORDER BY `displayorder` DESC, `id` ASC #URL:https://www.songliwuba.cn/topic/3 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/9 #0 /www/wwwroot/songliwu.cn/dayrui/App/Tag/Controllers/Home.php(81): Phpcmf\View->display('tag.html') #1 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Home->index() #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Home)) #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #5 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #6 {main} CRITICAL - 2020-11-13 10:38:38 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_tag` WHERE `pid` = '21' ORDER BY `displayorder` DESC, `id` ASC #URL:https://www.songliwuba.cn/topic/3 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/9 #0 /www/wwwroot/songliwu.cn/dayrui/App/Tag/Controllers/Home.php(81): Phpcmf\View->display('tag.html') #1 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Home->index() #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Home)) #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #5 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #6 {main} CRITICAL - 2020-11-13 10:38:58 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_tag` WHERE `pid` = '21' ORDER BY `displayorder` DESC, `id` ASC #URL:https://www.songliwuba.cn/topic/3 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/9 #0 /www/wwwroot/songliwu.cn/dayrui/App/Tag/Controllers/Home.php(81): Phpcmf\View->display('tag.html') #1 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Home->index() #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Home)) #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #5 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #6 {main} CRITICAL - 2020-11-13 10:39:16 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_tag` WHERE `pid` = '21' ORDER BY `displayorder` DESC, `id` ASC #URL:https://www.songliwuba.cn/topic/3 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/9 #0 /www/wwwroot/songliwu.cn/dayrui/App/Tag/Controllers/Home.php(81): Phpcmf\View->display('tag.html') #1 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Home->index() #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Home)) #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #5 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #6 {main} CRITICAL - 2020-11-13 10:39:34 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_tag` WHERE `pid` = '21' ORDER BY `displayorder` DESC, `id` ASC #URL:https://www.songliwuba.cn/topic/3 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/9 #0 /www/wwwroot/songliwu.cn/dayrui/App/Tag/Controllers/Home.php(81): Phpcmf\View->display('tag.html') #1 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Home->index() #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Home)) #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #4 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #5 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #6 {main} CRITICAL - 2020-11-13 10:40:34 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_news` WHERE `catid` = 1 AND `status` = 9 AND `id` > 171 ORDER BY `id` asc LIMIT 1 #URL:https://www.songliwuba.cn/question/171 #AGENT:Mozilla/5.0 (Linux U Android 10 zh-cn MI CC 9 Build/QKQ1.190828.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/71.0.3578.141 Mobile Safari/537.36 XiaoMi/MiuiBrowser/13.2.20 #REFERER:https://m.baidu.com/from=1012852q/ssid=0/uid=0/bd_page_type=1/pu=usm%408%2Csz%40320_1004%2Cta%40iphone_2_10.0_11_13.2/baiduid=74411E0FC83A73696443DC183EBBBB3E/w=0_10_/t=iphone/l=3/tc?clk_type=1&vit=osres&l=1&baiduid=74411E0FC83A73696443DC183EBBBB3E&t=iphone&ref=www_iphone&from=1012852q&ssid=0&lid=7748001576148892065&bd_page_type=1&pu=usm%408%2Csz%40320_1004%2Cta%40iphone_2_10.0_11_13.2&order=10&fm=alop&isAtom=1&waplogo=1&is_baidu=0&tj=www_normal_10_0_10_title&m=8&cltj=normal_title&asres=1&title=%E5%AE%A2%E6%88%B7%E6%9C%8B%E5%8F%8B%E6%96%B0%E5%85%AC%E5%8F%B8%E4%B9%94%E8%BF%81%E4%B9%8B%E5%96%9C%E9%80%81%E4%BB%80%E4%B9%88%E7%A4%BC%E7%89%A9%E6%AF%94%E8%BE%83%E5%A5%BD-%E5%A4%A9%E6%99%B4%E7%A4%BC%E7%89%A9%E7%BD%91&clk_info=%7B%22tplname%22%3A%22www_normal%22%2C%22srcid%22%3A1599%2C%22t%22%3A1605235231239%2C%22xpath%22%3A%22div-article-section-div-div-div-a-div-div%22%7D&wd=&eqid=6b866e62018579a1100000025fadf19f&w_qd=IlPT2AEptyoA_ykzs3kcxAexGkdSjXomzy1NegzR5hgqVe9zMllc-InhevdqdKK&bdver=2&tcplug=1&dict=-1&sec=7898&di=13e7254af61947aa&bdenc=1&tch=124.307.324.3912.6.1385&nsrc=GIoREbr7yPAz54JPnhPBAPA6ZaYuzgJaBUTjuOAov3NM8bZSxlFiBSTDMGf9lPzh2JMwtlAdVsu3TDeQ%2Btcxz2h6tlfyEVgfWLAqBKMppko%3D #0 /www/wwwroot/songliwu.cn/dayrui/Fcms/Control/Home/Module.php(409): Phpcmf\View->display('show.html') #1 /www/wwwroot/songliwu.cn/dayrui/Core/Controllers/Show.php(21): Phpcmf\Home\Module->_Show(171, NULL, 1) #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Show->index() #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Show)) #4 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #6 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #7 {main} CRITICAL - 2020-11-13 10:40:38 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_news` WHERE `catid` = 1 AND `status` = 9 AND `id` > 644 ORDER BY `id` asc LIMIT 1 #URL:https://www.songliwuba.cn/question/644 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/3 #0 /www/wwwroot/songliwu.cn/dayrui/Fcms/Control/Home/Module.php(409): Phpcmf\View->display('show.html') #1 /www/wwwroot/songliwu.cn/dayrui/Core/Controllers/Show.php(21): Phpcmf\Home\Module->_Show(644, NULL, 1) #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Show->index() #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Show)) #4 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #6 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #7 {main} CRITICAL - 2020-11-13 10:40:39 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_news` WHERE `catid` = 1 AND `status` = 9 AND `id` > 644 ORDER BY `id` asc LIMIT 1 #URL:https://www.songliwuba.cn/question/644 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/3 #0 /www/wwwroot/songliwu.cn/dayrui/Fcms/Control/Home/Module.php(409): Phpcmf\View->display('show.html') #1 /www/wwwroot/songliwu.cn/dayrui/Core/Controllers/Show.php(21): Phpcmf\Home\Module->_Show(644, NULL, 1) #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Show->index() #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Show)) #4 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #6 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #7 {main} CRITICAL - 2020-11-13 10:40:40 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_news` WHERE `catid` = 1 AND `status` = 9 AND `id` > 644 ORDER BY `id` asc LIMIT 1 #URL:https://www.songliwuba.cn/question/644 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/3 #0 /www/wwwroot/songliwu.cn/dayrui/Fcms/Control/Home/Module.php(409): Phpcmf\View->display('show.html') #1 /www/wwwroot/songliwu.cn/dayrui/Core/Controllers/Show.php(21): Phpcmf\Home\Module->_Show(644, NULL, 1) #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Show->index() #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Show)) #4 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #6 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #7 {main} CRITICAL - 2020-11-13 10:40:52 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_news` WHERE `catid` = 1 AND `status` = 9 AND `id` > 644 ORDER BY `id` asc LIMIT 1 #URL:https://www.songliwuba.cn/question/644 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/3 #0 /www/wwwroot/songliwu.cn/dayrui/Fcms/Control/Home/Module.php(409): Phpcmf\View->display('show.html') #1 /www/wwwroot/songliwu.cn/dayrui/Core/Controllers/Show.php(21): Phpcmf\Home\Module->_Show(644, NULL, 1) #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Show->index() #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Show)) #4 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #6 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #7 {main} CRITICAL - 2020-11-13 10:41:35 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_news` WHERE `catid` = 1 AND `status` = 9 AND `id` > 644 ORDER BY `id` asc LIMIT 1 #URL:https://www.songliwuba.cn/question/644 #AGENT:Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36 #REFERER:https://www.songliwuba.cn/topic/3 #0 /www/wwwroot/songliwu.cn/dayrui/Fcms/Control/Home/Module.php(409): Phpcmf\View->display('show.html') #1 /www/wwwroot/songliwu.cn/dayrui/Core/Controllers/Show.php(21): Phpcmf\Home\Module->_Show(644, NULL, 1) #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Show->index() #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Show)) #4 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #6 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #7 {main} CRITICAL - 2020-11-13 10:42:28 --> syntax error, unexpected end of file #SQL:SELECT * FROM `dr_1_news` WHERE `catid` = 1 AND `status` = 9 AND `id` > 176 ORDER BY `id` asc LIMIT 1 #URL:https://www.songliwuba.cn/question/176 #AGENT:Mozilla/5.0 (Linux Android 10 HMA-AL00 Build/HUAWEIHMA-AL00 wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.89 Mobile Safari/537.36 T7/12.3 SP-engine/2.25.0 baiduboxapp/12.3.0.11 (Baidu P1 10) NABar/1.0 #REFERER:https://m.baidu.com/ #0 /www/wwwroot/songliwu.cn/dayrui/Fcms/Control/Home/Module.php(409): Phpcmf\View->display('show.html') #1 /www/wwwroot/songliwu.cn/dayrui/Core/Controllers/Show.php(21): Phpcmf\Home\Module->_Show(176, NULL, 1) #2 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(918): Phpcmf\Controllers\Show->index() #3 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Phpcmf\Controllers\Show)) #4 /www/wwwroot/songliwu.cn/dayrui/System/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #5 /www/wwwroot/songliwu.cn/dayrui/Fcms/Init.php(377): CodeIgniter\CodeIgniter->run() #6 /www/wwwroot/songliwu.cn/index.php(47): require('/www/wwwroot/so...') #7 {main}回复迅睿框架创始人<?php $arr=[]; foreach ($tags as $name=>$u) { $arr[]= " title like '%".$name."%' "; } $where=urlencode(implode(" and ", $arr));?>{module module=news where=$where num=55}