RE: [PHP-DB] how to make a dropdown list with sql content
| From: | NCI/IMS) | Date: | Mon, 10 Dec 2001 14:16:43 +0000 |
| Subject: | RE: [PHP-DB] how to make a dropdown list with sql content | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14900@lists.php.net to get a copy of this message | ||
I don't understand the second part of your question but for the first part
you can use a select distinct in your SQL statement and then loop through
the result to put things into a drop down box. I just printed the HTML with
the var name in there and it worked well.
Good luck!
-Natalie
> -----Original Message-----
> From: venomous [SMTP:venomous@zeelandnet.nl]
> Sent: Monday, December 10, 2001 9:07 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] how to make a dropdown list with sql content
>
> I need to make a dropdown menu from my mysql database but i don't no how
> to
> come about
>
>
> It's the meaning that i don't get weird things in my database for instants
>
> PI 300 or pi 300
>
>
> thanks in advanced
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net