php-db | 2001011
Date: 12/31/00
- Next message: AOL Busters: "[PHP-DB] THIS IS HUGE! WATCH OUT AOL"
- Previous message: Andy Etemadi: "Re: [PHP-DB] time from Mysql to php"
- Next in thread: JB: "Re: [PHP-DB] Php, MySql dynamic creation of dropdown list"
- Reply: JB: "Re: [PHP-DB] Php, MySql dynamic creation of dropdown list"
- Reply: Stas Trefilov: "Re: [PHP-DB] Php, MySql dynamic creation of dropdown list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi All
I would like to create a dropdown selection list getting the item selected
from my MySql db and then including the item selected into to SQL statement
so that users only get shown the relevant rows according to the item they
have selected.
The field I want to manipulate is $month. So the dropdown list will show
only one instance of $month as I have many of the same month listed in
$month.
Then when selected they get back from my db all rows with the selected
$month.
I think my SQL will read something like.
SELECT * FROM db WHERE $month="value from dropdown list"; ( I think )
I am searching the web to try and find the answer but if any of you could
through some pointers on how to accomplish this then I will be most
grateful.
Dave ;-)
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: AOL Busters: "[PHP-DB] THIS IS HUGE! WATCH OUT AOL"
- Previous message: Andy Etemadi: "Re: [PHP-DB] time from Mysql to php"
- Next in thread: JB: "Re: [PHP-DB] Php, MySql dynamic creation of dropdown list"
- Reply: JB: "Re: [PHP-DB] Php, MySql dynamic creation of dropdown list"
- Reply: Stas Trefilov: "Re: [PHP-DB] Php, MySql dynamic creation of dropdown list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

