RE: [PHP-WIN] populating
| From: | HKG) | Date: | Mon, 11 Feb 2002 12:22:43 +0000 |
| Subject: | RE: [PHP-WIN] populating | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11956@lists.php.net to get a copy of this message | ||
The syntax for <SELECT> is:
<SELECT>
<OPTION VALUE=[some value]> your text </OPTION>
[...]
</SELECT>
If you want too populate a SELECT from a data base you can do something like
this:
</SELECT>
<? Get_Option_Items_As_HTML_From_DB(); ?>
<SELECT>
>-----Original Message-----
>From: Sandeep Murphy [mailto:Sandeep.Murphy@oni.pt]
>Sent: Monday, February 11, 2002 1:06 PM
>To: php-windows@lists.php.net
>Subject: [PHP-WIN] populating
>
>
>Hi,
>
>Can anyone pl guide me as to how I can populate a select box in my PHP
using
>the data from a table of an Mysql database..
>
>I can retrieve the data but unable to show that data in the
>select box...