Si.
Pagina di ricerca:
codice:
<%
attiv = request.form("attiv") ' il valore della combo box
if len(attiv) > 0 then
set conn = ...
conn.open ...
sql = "SELECT A.campo1 AS campo1, " &_
"B.campo2 AS campo2, " &_
"C.campo3 AS campo3, " &_
"D.campo4 AS campo4 " &_
"FROM Informazioni A, Uffici B, Personale C, Negozi D " &_
"WHERE A.Attiv = '" & attiv & "' " &_
"OR B.Attiv = '" & attiv & "' " &_
"OR C.Attiv = '" & attiv & "' " &_
"OR D.Attiv = '" & attiv & "'"
set rs = conn.execute(sql)
if not rs.eof then
do until rs.eof
response.write rs("campo1") & "<br /">
response.write rs("campo2") & "<br /">
response.write rs("campo3") & "<br /">
response.write rs("campo4") & "<br /">
rs.moveNext
loop
end if
rs.close
set rs = nothing
conn.close
set conn = ntohing
end if
%>