| Topic: | Top News submitters |
|---|---|
|
wicked
Noob
Posts: 11 Posted: |
I try to create a block that shows the top news submitters on the last [period time] and it doesn't show anything :S This is the sql that i execute... Where 7 is the number of days. Thanks for your support :) |
|
Chestnut
Site Admin Posts: 1320 Posted: |
I'm not expert of this sort of things but from what I see... you are asking in your sql what news is LIKE 7days before and ... think I see another error. You are missing a where... Think something like this would be more appropriate : This is to tell the sql that you want the news where the username is like the news informant And this is to get all what happened since 7 days ago The number of news for each user will be given in the "ncount" later in your code. Try this and see if it works... Chestnut ! ![]() Site Admin |