Hey guys new to ASP so my terminology may not be quite right. Looking to build a page that has a table that it pulls from SQL database. Every time you click on an image on the table i want the page to pull the variable and reload in the same page to a new variable. So it sort of drills down variables.
Currently my page pulls from my database and displays images the way it needs to. Now i need to be able to click on the image and have the page reload into the same page with the variable selected. My database is set up already.
this is currently the code I have to display the table with images
SQL = "select type from resources group by type order by type"
RSb.Open SQL,Conn
Dim mytype,mr,mpic
mr = 1
If rsb.eof then
'response.write "NOT FOUND"
else
do until rsb.eof
mytype = trim(rsb("type"))
mpic = mytype & ".JPG"
If mr = 1 then
response.write "<tr>"
end if
Response.write "<td><img src=""images/"& mpic &""" />"
Response.write mpic & "</td>"
If mr = 3 then
mr = 0
response.write "</tr>"
end if
mr = mr + 1
rsb.movenext
loop
response.write "</table>"
end if
%>