Forum Moderators: open

Message Too Old, No Replies

linking output from database

         

Blelisa

7:00 pm on Sep 20, 2005 (gmt 0)

10+ Year Member



I am confused, I am trying to make the ticket number section of each record clickable to show that individual row. This is my code for the output:
<table width="100%" border="1">
<%
' -- Output the Field Names as the first row in the table
Response.Write "<TR BGCOLOR=""#CCCCCC"">"
For i = 0 to objRS.Fields.Count - 1
Response.Write "<TH><FONT FACE=""ARIAL"" SIZE=""2"">" & objRS.Fields(i).Name & "</FONT></TH>"
Next
Response.write "</TR>"
' -- Now output the contents of the Recordset
objRS.MoveFirst
Do While Not objRS.EOF
' -- output the contents
Response.Write "<TR>"
For i = 0 to objRS.Fields.Count - 1
Response.Write "<TD><FONT FACE=""ARIAL"" SIZE=""1"">" & objRS.Fields(i) & "</FONT></TD>"
Next
Response.write "</TR>"
' -- move to the next record
objRS.MoveNext
Loop

objRS.Close
set objRS = Nothing
connection.Close
set connection = Nothing

%>
</table>

Where would I put the <a href="details.asp?ID=12345">Ticket 12345</a>.

I am understanding the theory behind what needs to be done, I am just having a real hard time converting it into code.

Blelisa

1:35 pm on Sep 21, 2005 (gmt 0)

10+ Year Member



Please disregard......I figured it out it was a misspelling. Thanks