Welcome to WebmasterWorld Guest from 50.19.34.234

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Auto fill dropdown combo box

     

adammc

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

10+ Year Member



Hi,

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'

[php]
<tr>
<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>Unisex</option>

<option>---</option>

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

<option>---</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>

<option>---</option>

<option>Fabric</option>
<option>Paper</option>
<option>Plastic</option>
<option>Wooden</option>
<option>Wool</option>

</select>
</td>
</tr>
[/php]

Any help would be greatly appreciated :)

adammc

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

10+ Year Member



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.

adammc

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

10+ Year Member



can anyone help?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month