业务经理

微信扫描以上二维码

028-61286886

技术咨询

有没有办法调取出标题包含中国并且包含美国的文章呢?

迅睿框架 更新 2020-11-13 10:56:05 ralaper

大家好,我想问下,这个相关调取{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开发模式:已关闭数据缓存:未设置分页功能:未开启

方案

  • 迅睿框架创始人 #1 · 2020-11-13 10:28:07
    {php $where=urlencode(" title like '%中国%' and title like '%美国%' ");}{module module=news where=$where num=55}换一种方式了
  • 薄荷绿 #2 · 2020-11-13 10:30:07
    where参数是万能的,可以组装任何sql条件
  • ralaper #3 · 2020-11-13 10:34:48
    回复迅睿框架创始人 这个是把关键词固定的写法,可不可以根据文章中的关键词,或者字段调取呢?比如 文章标题:公司领导就要结婚了送什么礼物好呢关键词:领导,结婚我想调用出,标题 包含领导和结婚的文章
  • 迅睿框架创始人 #4 · 2020-11-13 10:38:03
    当然可以了,show.html页面写法可以改成这样

    {php

    $arr=[];

    foreach ($tags as $name=>$u) {

    $arr[]= " title like '%".$name."%' ";

    }

    $where=urlencode(implode(" and ", $arr));}

    {module module=news where=$where num=55}

  • ralaper #5 · 2020-11-13 10:42:01
    回复迅睿框架创始人 系统故障了 😂

  • 迅睿框架创始人 #6 · 2020-11-13 10:42:50
    看下错误错误日志记录,可能是我写错了某个字母
  • ralaper #7 · 2020-11-13 10:44:17
    <?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}
    回复迅睿框架创始人
  • 迅睿框架创始人 #8 · 2020-11-13 10:51:17
    满意答案
    <?php
    
    $arr=[];
    
    foreach ($tags as $name=>$u) {
    
    $arr[]= " title like '%".$name."%' ";
    
    }
    
    $where=urlencode(implode(" and ", $arr));?>
    {module module=news where=$where num=55}
  • ralaper #9 · 2020-11-13 10:56:05
    迅睿框架创始人:完美!非常感谢!从来没有见过这么热心的创始人了!

迅睿系统漏洞

多语言翻译Seolang
多语言翻译Seolang(2026-09-21)
1. 新增译文数据备份恢复页面,支持断点续传 2. 多语言声明中心...
AI文章生成器
AI文章生成器(2026-09-20)
任务拆分独立配置 新增AI生成关键词 新增指令模板 新增品牌信...
GEO系统
GEO系统(2026-09-20)
后台 AEO 与运营端对齐:区域、跑批、CSV、补强、剧本均可在迅睿...
GeoSeo工具箱
GeoSeo工具箱(2026-09-18)
修正菜单规范
后台二次登陆验证
后台二次登陆验证(2026-09-18)
新增邮箱验证 新增短信验证
京东云短信
京东云短信(2026-09-17)
- 验证码有效期改只读展示 - 有效期旁新增系统设置按钮 - 保...
创蓝短信
创蓝短信(2026-09-17)
- 验证码有效期改只读展示 - 有效期旁新增系统设置按钮 - 保...
火山引擎短信
火山引擎短信(2026-09-17)
- 验证码有效期改只读展示 - 有效期旁新增系统设置按钮 - 保...
外贸多语言建站
外贸多语言建站(2026-09-17)
优化独立内容过滤机制