Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

one long list comma seperated 2

Status
Not open for further replies.

tyutghf

Technical User
Apr 12, 2008
258
GB
I have some fields in a database that were created just as one column. If there are various options then they were written with a comma seperating them

i.e. a column may contain

qwe,rty,uio,asd,fhhj

I can pull this out of the database no problem with rs("allows"), is it possible to create a dropdown of these so that from the column the page displays

<option>qwe</option>
<option>rty</option>
<option>uio</option>
<option>asd</option>
<option>fhhj</option>

Thanks folks
 
That is great thanks, learing new stuff every day
 
Or....

Response.write "<option>" & replace(rs("allows"),",","</option><option>") & "</option>"

with a little fancy replacing you can skip the loop


-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Thanks gmmastros that is a clever way of doing it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top