Ho questa query, con array perche mi prende un record, della tabella nel db, dopo l'altro. Il problema è che il bottone carrello dovrebbe comparire solo se vi è "disponibile" nel campo "stato" della tabella, ma non m da alcuna immagine..
??


code:--------------------------------------------------------------------------------
sSQL = "SELECT * FROM Prodotti WHERE Collezione = 'Sirio' ORDER BY id"
set rs = conn.execute(sSQL)

if not rs.eof then
cnt = 1
i = 0
do until rs.eof
if cnt > 0 then
arrVoci(i,0) = rs("TitoloProdotto")
arrVoci(i,1) = rs("Collezione")
arrVoci(i,2) = rs("ImmagineProdotto")
arrVoci(i,3) = rs("DescrizioneProdotto")
arrVoci(i,4) = rs("Marchio")
arrVoci(i,5) = rs("ImmagineBigProdotto")
stat = rs("stato") <<- sta nella tabella credo
if stato = "disponibile" then
arrVoci(i,6) = "[img][/img]"
else
arrVoci(i,6) = "[img][/img]"
end if

i = i + 1
end if

--------------------------------------------------------------------------------


in html.. <%=arrVoci(0,6)%>