Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Highscore list

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,544
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Highscore list
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Highscore list - 12/29/2001 7:41:23 AM   
  starlord

 

Posts: 2
Score: 0
Joined: 12/29/2001
From:
Status: offline
Hi! I have a dice game, made in Java.(an applet). The game is inside an ASP-site. All the variables were sent, from the applet to a ASP-site called "Tarning_insert.asp", and from there to a Access database. A score is set after each game. I want to have that score sorted in a list, the highest score should have "place 1" and so on...but all data should be still sorted by date(datum)desc.

Some of my code on "tarnings_spel.asp"
<%

dbfile=Server.MapPath("Tarnings_Spel.mdb")
Set OBJdbConnection=Server.CreateObject("ADODB.Connection")
OBJdbConnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq="&dbfile

Set rs = Server.CreateObject("ADODB.Recordset")
sql= "SELECT * FROM tarnings_spel order by datum desc"
rs.Open sql, OBJdbConnection, 3, 3

%>

<%
While Not rs.EOF
Response.Write("<b>?~:: Spel nr </b> " & rs.fields("id") & "<b> ::~?</b><br>" )
Response.Write("<b>Datum: </b>" & rs.fields("datum") & "<br>" )
Response.Write("<b>Namn: </b>" & rs.fields("namn") & "<br>")
Response.Write("<b>Omgangar: </b>" & rs.fields("omgangar") & "<br>")
Response.Write("<b>Score: </b>" & rs.fields("score") & "<br>")

rs.movenext

Response.Write("<hr noshade>")
Wend

%>



Here is the applet.
http://web.domaindlx.com/lova/tarning/tarnings_spel.asp

Does anyone understand my problem..
Thankful for your help.
/S
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Highscore list Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts