strdata = "data1, data2, data3, data4" strdata = split(strdata,",") for b = Lbound(strdata) to Ubound(strdata) strSQL = "Select * from tabel2 where tabel = '%" & strdata(b) & "%'" Set rs = Conn.Execute(strSQL) if not rs.eof then do response.write rs("id") rs.movenext loop while not rs.eof end if set rs = nothing end if next
strdata = "data1, data2, data3, data4" strdata = split(strdata,",") for b = Lbound(strdata) to Ubound(strdata) strSQL = "Select * from tabel2 where tabel like '%" & strdata(b) & "%'" Set rs = Conn.Execute(strSQL) if not rs.eof then do response.write rs("id") rs.movenext loop while not rs.eof end if set rs = nothing end if next
strdata = "data1, data2, data3, data4" strdata = split(strdata,",") for b = Lbound(strdata) to Ubound(strdata) strSQL = "Select * from tabel2 where tabel like '%" & strdata(b) & "%'" Set rs = Conn.Execute(strSQL) if not rs.eof then do response.write rs("id") rs.movenext loop while not rs.eof end if set rs = nothing next
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.