Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Top 10 Poster
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Top 10 Poster

 Post Reply Post Reply
Author
 Rating: Topic Rating: 1 Votes, Average 5.00  Topic Search Topic Search  Topic Options Topic Options
true_king View Drop Down
Groupie
Groupie
Avatar

Joined: 05 November 2007
Location: Hell
Status: Offline
Points: 97
Post Options Post Options   Thanks (0) Thanks(0)   Quote true_king Quote  Post ReplyReply Direct Link To This Post Topic: Top 10 Poster
    Posted: 24 November 2007 at 8:21am
how to see top ten poster?
Back to Top
Gleedo View Drop Down
Groupie
Groupie


Joined: 23 October 2007
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gleedo Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2007 at 5:35pm
Click on MemberList and then sort by Posts Smile
Back to Top
madmojo View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2002
Location: Turkey
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote madmojo Quote  Post ReplyReply Direct Link To This Post Posted: 08 October 2008 at 3:08pm
<%
Set baglanti=Server.CreateObject("ADODB.connection" )
baglanti.Open "driver={microsoft access driver (*.mdb)}; DBQ=" &Server.MapPath("dbpath/mdnname.mdb" )
SQL="select * from tblAuthor ORDER BY No_of_posts desc"
Set kayitseti = baglanti.Execute(SQL)
i=1
Do While i<31 and not kayitseti.Eof
%>
<%=kayitseti("Username")%>&nbsp;  <%=kayitseti("No_of_posts")%> <br>
<% kayitseti.Movenext
i=i+1
Loop
kayitseti.Close
baglanti.Close %>
Back to Top
madmojo View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2002
Location: Turkey
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote madmojo Quote  Post ReplyReply Direct Link To This Post Posted: 08 October 2008 at 3:12pm
New User :
 
<%
Set baglanti=Server.CreateObject("ADODB.connection" )
baglanti.Open "driver={microsoft access driver (*.mdb)}; DBQ=" &Server.MapPath("dbpath/dbname.mdb" )
SQL="select * from tblAuthor ORDER BY Author_ID desc"
Set kayitseti = baglanti.Execute(SQL)
i=1
Do While i<31 and not kayitseti.Eof
%>

<%=kayitseti("Username")%><br>
 
<% kayitseti.Movenext
i=i+1
Loop
kayitseti.Close
baglanti.Close %>

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2008 at 6:16pm
For MS Access and MSSQL you can just do:

SQL="select top 10 * from tblAuthor ORDER BY No_of_posts desc"


For MySQL you can do this:

SQL="select * from tblAuthor ORDER BY No_of_posts desc limit 0,10"



10 being the number of users you wish to display. Though if you are displaying them in forum pages (eg ones that include "common.asp") then you do not need to connect to the database and can just use adoCon and rsCommon
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.