Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing with response.redirect links

Status
Not open for further replies.

jacquelinewalton

Programmer
Jul 29, 2004
7
US
Thanks in advance to any help which to some is probably simple.. to me .. horrifying.

I have an asp page that queries a database and gets all the Title, ItemID, and Expiration Fields where a username is true. (I alreadyhave the SQL for this)

BUT... now that I have that info,I can not figure out for the life of me how to display it where it looks like the following in 3 columns:

Title(Hyperlink to Item ID Expiration

but the URL for the title where it says &itemid& is a variable for that item only. ItemID and Expiration is not a link

Then it displays the next item and it does this until itts done.

I can get it to list all the items in the columns its the URL with the variable I am having trouble with and the syntax on that. PLEASE help!
 
SQL="SELECT itemid,title,expiration from db"
SET RS= connstr.execute("SQL")
While not RS.eof

Response.write "A href="" & RS("itemid") & """>" & RS("title") & "</a> " & RS("itemid") & "&nbsp;&nbsp;" & RS("expiration") & "<BR>"

RS.movenext
Wend
SET RS=nothing
connstr.close
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top