<% if request("bic")<>"" then %>
Home
<%
totbic=len(request("bic"))
startbic=1
DO WHILE not startbic = totbic
SQL="SELECT categoria FROM struttura_bic where bic = '" & left(request("bic"),startbic) & "'"
set RS_bic=conn.execute(SQL)
cat=RS_bic(0)
%>
> "><%=cat%>
<% startbic = startbic + 1 %>
<% loop %>
<%
SQL="SELECT categoria FROM struttura_bic where bic = '" & request("bic") & "'"
set RS_last_bic=conn.execute(SQL)
cat=RS_last_bic(0)
%>
> <%=cat%>
<% end if %>
