Hi
I am a relative ASP newbie and need some help please. I have a list of categories displayed on my page and need to make them into hyperlinks only displaying the category name itself, not the entire link.
I've managed to open the database connection and display the list of categories fine. Unfortunately I cannot work out the code to get the category inserted into the hyperlink too.
In case I am not explaining myself well I have added a bit of code below which might help you understand what I am looking for:
This is what I have:
Response.Write (rsCategories("categories"))
Response.Write ("<br>")
Which displays to the user as:
English
Comprehension
Maths
Numeracy
What I need is the "proper" version of this (non working) code:
Response.Write(rsCategories("<a href="results.asp?pl=<%categories%>>categories</a>"))
Response.Write ("<br>")
This should still display to the user as the first example but each link should point to:
results.asp?pl=English
results.asp?pl=Comprehension
results.asp?pl=Maths
results.asp?pl=Numeracy
If someone could tell me where I have gone wrong I would really appreciate it!
Thanks
Ian