Okej, jag vill få in denna kodsnutt att fungera i en annan. Ni förstår säkert. :)
<%If (ObjRS("kon")) = "0" then %>P<% Else %>F<% End If %>
<%
Dim ObjRS, arrRs2, intRows2, rows2, anvnamn, kon
Set ObjRS = ObjConn.Execute("Select bild, Id, anvnamn, icq, kon From medlemmar WHERE bild_accepterad = '1' ORDER BY datum DESC limit 9")
if ObjRS.Eof then
Response.write "<p>Det finns inga bilder, konstigt.</p> "
ObjRS.Close
Set ObjRS = nothing
else
arrRs2 = ObjRS.GetRows()
ObjRS.Close
Set ObjRS = nothing
intRows2 = uBound(arrRs2,2)
For rows2 = 0 to intRows2
Response.Write " <a href='inloggad.asp?visa=profil&userID=" & arrRs2(1,rows2) & "' title=' " & arrRs2(2,rows2) & arrRs2(4,rows2) & " från " & arrRs2(3,rows2) & "'><img src=" & arrRs2(0,rows2) & " width=65 height=81></a>"
Next
End if
ObjConn.CLOSE
Set ObjConn = nothing
%>