1Next >
missliamg | 发表于:12-01-05 14:39 编辑于:01-06 09:51 [添加收藏] 楼主 [回复] #Top# |
---|---|
人气:79
积分:0
金币:6528
|
{@res.select_join table1='%s_content' field1='id,title,url,description,comment,iscomment,date,image,keywords' table2='%s_content_tag_bind' table3='%s_content_archive' field3='dd' on='id' where="t1.status=1 and t2.tid={$info['tid']}" order='t1.id desc' url="{DIR}{$info['url']}" number='10'}在contenttag目录下的模板却可以调用相关TAGS的文章 为什么在contentcontent目录下的模板却提示以下错误: 有点不理解。。。郁闷死了 Undefined index: tid D:www_cachetemplatecontentcontentblog.php - 117 Undefined index: tid D:www_cachetemplatecontentcontentblog.php - 135 1064) 数据查询错误:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY t3.id desc LIMIT 5' at line 1
Ta最近还发表过
[其他]
半小时500+金币
(15-06-15)
[疑问]
求高手解决下 中英文问题
(12-08-23)
[疑问]
KingCMS V9(K9)如何把首页分页的第1页设置为404页面?
(12-02-12)
[疑问]
K9 用TAGS调用相关文章的问题 高手快来!!!
(12-01-16)
[疑问]
KingCMS V9(K9)----首页实现分页方法讨论贴----
(12-01-12)
随机阅读
[使用]
ASPJPEG/1.5 -› False,更新后台出现代码。
(18-04-22)
[疑问]
K9门户的广告位还是摸不着头脑
(14-08-24)
[使用]
可以下拉的自动生成导航栏menu
(13-09-19)
[疑问]
怎么升级为认证会员啊?
(13-06-14)
[分享]
今年中秋 你准备谁过?
(11-11-02)
|
ghyfxy | 发表于:12-01-05 14:40 沙发 [回复] #Top# |
---|---|
人气:0
积分:38
金币:80
|
对这个没有研究
|
jumpsky | 发表于:12-01-05 15:56 编辑于:01-06 09:05 板凳 [回复] #Top# |
---|---|
人气:30
积分:274
金币:710
|
哇哇哇 好复杂
|
toymen | 发表于:12-01-06 00:38 编辑于:01-06 00:45 4楼 [回复] #Top# |
---|---|
人气:518
积分:3458
金币:23864
|
tid值获取不到,要先获取tid值,改$info['tid']
在tag页面,$info['tid']直接可以获取tid,在内容页或其他页面,要先获取该tag的tid值,才能调用到数据库里的数据。 后面url="{DIR}{$info['url']}" number='10' 这段是分页用的,在其他页面调用,直接number='10'就行了。 用模板中的代码要先理解代码的含义,再融会贯通,上手就快了 |
lanrennet | 发表于:12-01-06 09:38 5楼 [回复] #Top# |
---|---|
人气:113
积分:949
金币:5089
|
NB 的 K9
|
催命判官 | 发表于:12-01-16 13:34 编辑于:01-16 13:35 6楼 [回复] #Top# |
---|---|
人气:495
积分:3020
金币:26497
|
1Next >