in reply to scrolling list
Then you have a nice array with all the elements of your sql return. Then just setup the select and itterate through this array like so:my $sth = $dbh->prepare("SELECT stuff FROM table"); $sth->execute; my @data = $sth->fetchrow_array;
And if what is what you are looking for, then there is a simple answer, if not, BUGGER OFF! Tradezprint "<select name = 'test'>"; foreach my $entry ( @data ) { print "<option value = '$entry'>$entry</option>"; } print "</select>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Another simple answer by tradez
by gmax (Abbot) on Dec 21, 2001 at 18:22 UTC |