The following snippet returns items from the db in a drop down box for user selection.
What I am actually trying to do is return the items to a TEXT BOX, where each selection is a selectable (or multiple selectable) row in the text box. Rusty html skills...
<td><select name="opt_display">
<?
// list of possible options comes from database
$cat_array=get_options();
foreach ($cat_array as $thiscat)
{
echo "<option value=\"";
echo $thiscat["opt_display"];
echo "\"";
// if existing book, put in current catgory
if ($edit && $thiscat["opt_display"] == $opt_display["opt_display"])
echo " selected";
echo ">";
echo $thiscat["opt_display"];
echo "\n";
}
?>
</select>
</td>