You'd better do not use count() after group by and order by.
But you can use:
select uid,author,count(tid) as a from blog_blog where postdate>='".$weekdate."' group by uid,a order by a desc limit 0,5
But you can use:
select uid,author,count(tid) as a from blog_blog where postdate>='".$weekdate."' group by uid,a order by a desc limit 0,5
解决方案 »
- 关于zend sudio一个烦人的问题
- 这样的站做多少钱?
- php开发环境的比较,哪个比较好?
- php +mssql 有没有 像mysql_insert_id功能 函数
- 请各位推荐一款性价比好 稳定快速的php空间
- 如何才能将站用空间压缩
- 求一个进度条。
- 新手求助~
- Parse error: syntax error, unexpected '<' in ..\syclasstype.php on line 91,怎么解决
- PHP判断游客会员石头超出每天发帖限制,如果修改成不限制注册会员?
- 求助:刚学SMARTY模板,按照网上讲得做,但使用assign方法时老是出现问题,弄了一下午,都快疯了!!!
- 问一个关于fopen的问题
这样试试