Hello all,
Question:
How can I create an unknown amount of variables when the page is being processed...to be determined by the amount of records pulled from the database?
[/color]
Problem:
I'm making a drop down menu dynamically from the records on a *.dbf file. I can pull them no problem and add every record in the dropdown select as the page processes, however, certain choices are listed several times. For example, I want it so the user can search for on of the manufacturer's for a product I.E. Intel, Microsoft, etc. But I don't want each thing listed 20 times, I figured if I can figure out how to create another variable each time a new record is found by compareing it to the other variables created, then it will list each thing only once. If anyone can help me....I'd really really appreciate it!!! Thank you!
Here is just a small bit of my select statement
response.write("<SELECT NAME='Printer' id='select'>"
response.write("<OPTION value=''>List Everything</OPTION>"
Dim i
i = 0
Do While not rs3.eof
i = i + 1
dim item(i)
item(i) = rs3("Manufact"
response.write("<OPTION VALUE='" & item(i) & "'>" & item(i) & "</OPTION>"
Loop
Response.Write("</SELECT>"
Hope this makes sense! Thanks again!
Question:
How can I create an unknown amount of variables when the page is being processed...to be determined by the amount of records pulled from the database?
[/color]
Problem:
I'm making a drop down menu dynamically from the records on a *.dbf file. I can pull them no problem and add every record in the dropdown select as the page processes, however, certain choices are listed several times. For example, I want it so the user can search for on of the manufacturer's for a product I.E. Intel, Microsoft, etc. But I don't want each thing listed 20 times, I figured if I can figure out how to create another variable each time a new record is found by compareing it to the other variables created, then it will list each thing only once. If anyone can help me....I'd really really appreciate it!!! Thank you!
Here is just a small bit of my select statement
response.write("<SELECT NAME='Printer' id='select'>"
response.write("<OPTION value=''>List Everything</OPTION>"
Dim i
i = 0
Do While not rs3.eof
i = i + 1
dim item(i)
item(i) = rs3("Manufact"
response.write("<OPTION VALUE='" & item(i) & "'>" & item(i) & "</OPTION>"
Loop
Response.Write("</SELECT>"
Hope this makes sense! Thanks again!