1Next >
webgm | 发表于:11-07-04 21:28 [添加收藏] 楼主 [回复] #Top# |
---|---|
![]() ![]() |
比如我建立了一个 模型
{King:Portal.ndysj} 自定义分类字段2个 大类 aaa 下拉列表 ” a1 a2 a3“ 小类 bbb 多选字段 "b1 b2 b3 b4 b5 b6 b7 b8 b9 b10" 然后这个模型应用到多个栏目 而现在要实现一种查询 aaa与bbb的值通过url get传递, 当 {King:Portal.ndysj where="aaa=(GET:aaa/) and bbb=(GET:bbb/)"} {/King:Portal.ndysj} 但是有一个问题,就是(GET:bbb/)不一定存在。 所以要用PHP进行判断。 <?php $s1="{GET:s1/}"; //获得大类 $s2="{GET:s2/}"; //因为大类是始终存在的,所以只需要一条循环判断 if ($s2!=""){ echo '{King:Portal.ndysj listid=(listid/) where="aaa='.$s1.' and bbb='.$s2.'"}'; } else { echo '{King:Portal.ndysj listid=(listid/) where="aaa='.$s1.'"}'; } ?> {King:title/} {/King:Portal.ndysj} 这样为什么不行?
Ta最近还发表过
[疑问]
对KINGCMS ,忍无可忍了
(17-04-12)
[使用]
正在制作中的小东西
(15-04-12)
[疑问]
栏目无法删除
(12-11-29)
[错误]
缩略图默认不是从中部截取?
(11-12-22)
[疑问]
请问那个标签内部的 next如何使用
(11-07-13)
随机阅读
[其他]
我参团了
(12-09-06)
[疑问]
PHP(sp2) 静态页生成路径问题
(12-07-02)
[其他]
今天上午kingcms网站打不开
(12-05-08)
[帮助]
地方站访谈:天时地利人和打造新“地宝网”
(11-11-18)
[疑问]
什么叫“同一个模块的升级,是终身免费的。”?
(11-05-20)
|
webgm | 发表于:11-07-04 21:40 沙发 [回复] #Top# |
---|---|
![]() ![]() |
![]() 加入这个代码,APACHE就会卡死 |
61.242.159.* | 发表于:11-07-04 21:42 板凳 [回复] #Top# |
---|---|
![]() |
看日志有什么提示。
|
webgm | 发表于:11-07-04 21:49 4楼 [回复] #Top# |
---|---|
![]() ![]() |
[Mon Jul 04 21:46:07 2011] [notice] Child 4800: Child process is running
[Mon Jul 04 21:46:07 2011] [notice] Child 4800: Acquired the start mutex. [Mon Jul 04 21:46:07 2011] [notice] Child 4800: Starting 250 worker threads. [Mon Jul 04 21:46:07 2011] [notice] Child 4800: Starting thread to listen on port 80. [Mon Jul 04 21:46:52 2011] [notice] Parent: Received shutdown signal -- Shutting down the server. [Mon Jul 04 21:46:52 2011] [notice] Child 4800: Exit event signaled. Child process is ending. [Mon Jul 04 21:46:53 2011] [notice] Child 4800: Released the start mutex [Mon Jul 04 21:46:54 2011] [notice] Child 4800: Waiting for 250 worker threads to exit. [Mon Jul 04 21:46:54 2011] [notice] Child 4800: All worker threads have exited. [Mon Jul 04 21:46:59 2011] [notice] Child 4800: Child process is exiting [Mon Jul 04 21:46:59 2011] [notice] Parent: Child process exited successfully. 没有其他提示,应该直接是APACHE进程死掉。 我个人认为是这个模板解析模块导致的问题。 解析PHP代码与KING标签冲突了导致的。 可能是导致死循环、内存溢出等。 |
wushulinghua | 发表于:11-07-05 16:10 5楼 [回复] #Top# |
---|---|
![]() ![]() |
。。。。天书呀
|
wanglovek | 发表于:11-07-05 17:20 6楼 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() |
相当不错
|
1Next >