<% if Request.querystring("ID") = "" then Set rs=Conn.Execute("Select * From Hyacinttabel where ID='43'") else strSQL = "Select * From Hyacinttabel where ID=" & request.querystring("ID") Set rs = Conn.Execute(strSQL) end if
if not rs.eof then strVisBillede ="<img src='/Afaureflora/db/upload/" & rs("BilledeNavn") & "' border='1'>" end if
Nu vil jeg gerne bruge den i 2 forskellige Conn.Execute, men det funker ikke, jeg har prøvet sådan, hvad gør jeg forkert:
if Request.querystring("ID") = "" then Set rs=Conn.Execute("Select * From Hyacinttabel where ID=43") else Set rs = Conn.Execute("Select * From Hyacinttabel where ID=" & request.querystring("ID")) strGruppeID = rs("GruppeID") end if Set rs2 = Conn.Execute("Select * From GruppetxtTabel where Gruppe='" & strGruppeID & "'") if not rs.eof then if not rs2.eof then Response.Write "<div id=""gruppetxt"" style=""display:inline"">"&rs2("GruppeTxt")&"</div>" end if end if
if Request.querystring("ID") = "" then Set rs=Conn.Execute("Select * From Hyacinttabel where ID=43") else Set rs = Conn.Execute("Select * From Hyacinttabel where ID=" & request.querystring("ID")) if not rs.eof then strGruppeID = rs("GruppeID")
Set rs2 = Conn.Execute("Select * From GruppetxtTabel where Gruppe='" & strGruppeID & "'") if not rs2.eof then Response.Write "<div id=""gruppetxt"" style=""display:inline"">"&rs2("GruppeTxt")&"</div>" end if end if
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.