Posted by powerx on 01/02/06 16:08
Thanks a lot, will give it a go.
prx
"Kim Andrι Akerψ" <kimandre@NOSPAMbetadome.com> wrote in message
news:41i3rmF1dskubU1@individual.net...
> Assuming you mean MySQL, here's a simple example (HTML 4 used for
> simplicity's sake):
>
> <select name="fruit"><?php
> $results = mysql_query("SELECT id,brand FROM fruit_table");
> while ($row = mysql_fetch_assoc($results)) {
> echo "<option value=".$row['id'].">".$row['brand'];
> }
> ?></select>
>
> --
> Kim Andrι Akerψ
> - kimandre@NOSPAMbetadome.com
> (remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|