![]() |
|
|
#3 |
|
Архивный участник
Join Date: Mar 2005
Posts: 133
|
I will assume you have a working regisrter page that uses conn.asp
If not then I can not help out on PHP sry Here it is for asp Add this to stats.inc if you have one. If not make one. Add this to it Code:
sub ListTopClans10
dim query
dim rs
dim gender
response.write " <table width='200' valign='middle' border='0' align='center' cellpadding='0' cellspacing='0' bordercolor='silver'>" & _
" <tr align='center' valign='middle' height=25>" & _
" <td align='center' valign='middle' width='100'>Clan Name</td>" & _
" <td align='center' valign='middle' width='100'>Clan Level</td></tr>"
query = "SELECT TOP 25 skill_level,name,ruler_id FROM [pledge] WHERE name <> 'GameMasters' ORDER BY skill_level DESC"
set rs = Server.CreateObject("ADODB.RECORDSET")
rs.open query, lin2world_conn, 1, 1
while not rs.eof
response.write "<tr align='center' valign='middle'>"
response.write "<td align='center' valign='middle' width='100'>" & rs("name") & "</td>"
response.write "<td align='center' valign='middle' width='100'>" & rs("skill_level") & "</td>"
response.write "</tr>"
rs.movenext
Wend
rs.close
set rs = nothing
response.write "</table>"
end sub
Code:
<body bgcolor="#292C21" style="BODY" text="#C1BDB0" topmargin="0"> <table align="center" width="400"><td align="center"> <% call ListTopClans10 %></td></table> </body> The WHERE name <> 'GameMasters' That how we have it set up so only the players clans show up on list. This will atleast get you a working list and you can edit and build from there. You can edit all you want. Hope that helps out. Thanks for your time, Dubie |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|