J
Jeff
ok.. here is my script
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" &
Server.MapPath("/singlestour/fpdb/singles_tour.mdb")
SET oRS= Server.CreateObject("ADODB.Recordset")
strSQL = "Select username, total_score from current order by total_score
desc"
SET oRS= Conn.Execute(strSQL)
Const MAX_COLS = 2
Dim iCol, username, total_score
Response.Write "<table border='1'>"
Do While not oRS.Eof
iCol = 0
Response.Write "<tr>"
Do While iCol < MAX_COLS
If oRS.Eof Then
username = " "
total_score = " "
Else
username = oRS("username").value
total_score = oRS("total_score").value
oRS.moveNext
End If
Response.Write "<td>" & username & "</td>"
Response.Write "<td>" & total_score & "</td>"
Response.Write "<td>""against""</td>"
iCol = iCol + 1
Loop
Response.Write "</tr>"
Loop
Response.Write "</table>"
%>
and the display looks like this
http://www.gig-golf.com/singlestour/scores.asp but i want it to look like
this http://www.gig-golf.com/singlestour/scoresexample.asp
i am trying how to learn how to put html into asp.. but the main thing i
want to get rid of, is having the extra column on the right that says
against... i just want it in the middle.... any ideas??
Thanks
Jeff
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" &
Server.MapPath("/singlestour/fpdb/singles_tour.mdb")
SET oRS= Server.CreateObject("ADODB.Recordset")
strSQL = "Select username, total_score from current order by total_score
desc"
SET oRS= Conn.Execute(strSQL)
Const MAX_COLS = 2
Dim iCol, username, total_score
Response.Write "<table border='1'>"
Do While not oRS.Eof
iCol = 0
Response.Write "<tr>"
Do While iCol < MAX_COLS
If oRS.Eof Then
username = " "
total_score = " "
Else
username = oRS("username").value
total_score = oRS("total_score").value
oRS.moveNext
End If
Response.Write "<td>" & username & "</td>"
Response.Write "<td>" & total_score & "</td>"
Response.Write "<td>""against""</td>"
iCol = iCol + 1
Loop
Response.Write "</tr>"
Loop
Response.Write "</table>"
%>
and the display looks like this
http://www.gig-golf.com/singlestour/scores.asp but i want it to look like
this http://www.gig-golf.com/singlestour/scoresexample.asp
i am trying how to learn how to put html into asp.. but the main thing i
want to get rid of, is having the extra column on the right that says
against... i just want it in the middle.... any ideas??
Thanks
Jeff