| |
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
|
|