{dede:sql sql="select title,arcurl from dede_archives where sortrank>time()"}<a href="[field:arcurl/]">[field:title/]</a>
{/dede:sql}
sortrank是unix时间戳
time()是想获得当前系统的时间戳
不知道哪里错误了
{/dede:sql}
sortrank是unix时间戳
time()是想获得当前系统的时间戳
不知道哪里错误了
解决方案 »
- 关于html与mysql的交互,语言是php
- php操作access数据库的问题,我一开始在php区问了,但是没人响应,所以过来碰碰运气,希望各位前辈给看看,万分感谢!
- 隐藏表格的行后,表格变形了(help!~)
- 有朋友用drupal框架上开发web么?问个思路
- windows 2003 下 IIS 6 如何配置 PHP
- 问一SQL问题。挺复杂的。
- 通过html传递过来的参数,php查询 access
- 新手求助,socket Unable to create socket
- 菜鸟提问,高手帮忙!!!
- 求助?关于用php开发在线的象棋系统如何下手?
- php判断unix时间戳大小问题
- PHP视频网站点播到一半跳回到开始?
那就双表联查啊,两个表式通过什么键关联的?select a.title,b.arcurl from dede_archives a,table2 b where a.sortrank>time() and a.id=b.id;或者joinselect a.title,b.arcurl from dede_archives a join table2 b on a.id=b.id where a.sortrank>time() ;