Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 03.04.2005, 10:25   #3
Dubie
Архивный участник
 
Join Date: Mar 2005
Posts: 133
Default

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
Now make a asp page and add this to it.
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
Dubie is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:12.