Hi, I am having trouble with a select statement and not sure how to phrase it.
I have many links on one page like this.
I need that when you click on one postcardid link all the other postcardids associated with the author of that link are displayed on another page page.
This is the code on the other page. At the moment it only displays one result, ie the individual postcardid from the link. Each postcardid is by an author. I need it to display all the postcardids from the one author.
I dont know if that is clear but any help woulr be great.
Thanks
richard
I have many links on one page like this.
I need that when you click on one postcardid link all the other postcardids associated with the author of that link are displayed on another page page.
Code:
href="artschooldirectory.asp?PostCardID=<%=rsCard("PostCardID")%>"
I dont know if that is clear but any help woulr be great.
Thanks
richard
Code:
lngPostCardID=Clng(Request("PostCardID"))
If lngPostCardID <> "" Then
Set connPostCardSoft=Server.CreateObject("ADODB.Connection")
connPostCardSoft.Open PostCardSoftConnectString
Set rsCard=Server.CreateObject("ADODB.Recordset")
rsCard.CursorLocation = 3
SQLQuery="Select PostCardID,DefaultHeadline,CardDescription,DefaultMessage,Author,PictureURL,BackgroundImageURL,ThumbnailHTML,Rnd([PostCardID]) From tblGreetingPostCards where PostCardID=" & Clng(lngPostCardID) & " ORDER BY Author"
rsCard.Open SQLQuery, connPostCardSoft
rsCard.PageSize = 600
intPageCount = rsCard.PageCount
If rsCard.EOF=True Then
Response.Write "<p>No artists found in database for this category."
Response.End
End If
End If
Comment