1Next >
missliamg | 发表于:12-01-05 14:39 编辑于:01-06 09:51 [添加收藏] 楼主 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() |
{@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)
随机阅读
[分享]
想制作一份KINGCMS模板制作教程
(17-10-21)
[帮助]
首发大礼第三发:K9地方门户版模板限时2折
(14-08-18)
[疑问]
上传安装好后无法进首页
(13-11-12)
[疑问]
如何实现伪静态实现路径为 xxx.com/list名称
(12-05-30)
[建议]
企业版PHP官方提供一个完善的模板范例教程
(11-12-19)
|
ghyfxy | 发表于:12-01-05 14:40 沙发 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() |
对这个没有研究
|
jumpsky | 发表于:12-01-05 15:56 编辑于:01-06 09:05 板凳 [回复] #Top# |
---|---|
![]() ![]() ![]() |
哇哇哇 好复杂
|
toymen | 发表于:12-01-06 00:38 编辑于:01-06 00:45 4楼 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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# |
---|---|
![]() ![]() ![]() ![]() ![]() |
NB 的 K9
|
催命判官 | 发表于:12-01-16 13:34 编辑于:01-16 13:35 6楼 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1Next >