homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Auto fill dropdown combo box

 4:23 am on Mar 27, 2008 (gmt 0)


Is there any way of extracting then auto selecting items in a combo dropdown list with the data fetched from a db query?

The data is stored in the database like this 'Wool>Action Toys>For Babies & Kids'

<td width="200"><font class="maintext">XML Feed Categories</font></td>
<td width="300">
<select multiple="yes" size="5">

<option>For Babies & Kids</option>
<option>For Boys</option>
<option>For Girls</option>
<option>For Kids</option>


<option>For Babies & Kids</option>
<option>Babies (0-12months)</option>
<option>Toddlers (1-3years)</option>
<option>Preschoolers (3-6years)</option>


<option>Action Toys</option>
<option>Activities & Learning</option>
<option>Arts & Crafts</option>
<option>Building Sets, Blocks & Models</option>
<option>Bathtime Toys</option>
<option>Board Games, Card Games & Puzzles</option>
<option>Dolls & Doll Accessories</option>
<option>Educational Toys</option>
<option>Role Play, Dress Ups & Costumes</option>
<option>Soft Toys</option>
<option>Toys & Games for Babies</option>




Any help would be greatly appreciated :)



 4:53 am on Mar 27, 2008 (gmt 0)

in other words....

I wanted to query the db / column 'feed_categories' to check whether there is a match, if there is make the list option selected.


 7:45 pm on Mar 27, 2008 (gmt 0)

can anyone help?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved