scusate ho usato uno scrip asp che divide un testo collegato da virgole con SPLIT.
<%
function separa(testo,carattere)
dim separati
separati = split(testo, carattere)
%>
<%
for i=0 to ubound(separati)
response.write "M"&separati(i)
next
%>
<%
end function
dim strTesto
strTesto = Request("EDIFC_TY")
dim chrCarattere
chrCarattere = ","
call separa(strTesto,chrCarattere)
%>
ora dovrei inserire il dato diviso all'interno di una ricerca su database access presente nella stessa pagina :
<%
set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("A020102.mdb")
set Q1 = conn.execute("select * from 02010201 where .......... like '"& "%" & EDIFC_TY & "%" & "'")
if not Q1.EOF then
%>
.........
.....

Rispondi quotando
