Wayne Barron
asked on
Splitting multiple values from two different records from a database
Hello, all.
(ASP Classic)
Splitting strings, in my case, I have multiple values coming from the database.
Now, on the page, it will be.
I can use a split, to get the values broken up.
However, since we are dealing with 2 different values coming in, I cannot use the split and it duplicates everything.
So, my question is this.
How can I split it properly, to where it is only a single code that split both values?
Wayne
(ASP Classic)
Splitting strings, in my case, I have multiple values coming from the database.
a = 94/95
b = value1/value2
Now, on the page, it will be.
<a href="?Type=Label&LabelID=<%=x%>" title="<%=y%>"><%=y%></a>
I can use a split, to get the values broken up.
However, since we are dealing with 2 different values coming in, I cannot use the split and it duplicates everything.
<%
a = split(LabelID,"/")
b = split(LName,"/")
for each x in a
for each y in b
'response.Write (x & "<br />")
%>
<a href="?Type=Label&LabelID=<%=x%>" title="<%=y%>"><%=y%></a>
<%
next
next
%>
So, my question is this.
How can I split it properly, to where it is only a single code that split both values?
Wayne
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
that did it.
except I use it like so.
the I
gave an illegal operation. which tendsa to happen from time to time.
Open in new window