Connecting Tech Pros Worldwide Help | Site Map

User selection from drop down menu

  #1  
Old July 17th, 2005, 11:49 AM
Rob
Guest
 
Posts: n/a
I have 2 drop down menus. 1 is to pick a Province and the other is to
pick a trade (plumbng electrical etc)

The user selects which province and then what trade then hits submit
which should list all entries in the table. How would I formulate the
select statment for MySQL to display the results in a webpage. The
variable in my form are $province and $category
  #2  
Old July 17th, 2005, 11:50 AM
Erwin Moller
Guest
 
Posts: n/a

re: User selection from drop down menu


Rob wrote:
[color=blue]
> I have 2 drop down menus. 1 is to pick a Province and the other is to
> pick a trade (plumbng electrical etc)
>
> The user selects which province and then what trade then hits submit
> which should list all entries in the table. How would I formulate the
> select statment for MySQL to display the results in a webpage. The
> variable in my form are $province and $category[/color]

Dear Rob,

Do you expect us to look right through our internetconnection into your
system and see the mySQL database?

How can anybody answer such a question without knowing how your
tables/database is constructed?

DO you have a table with provinces?
DO you have a table with catagories?
DO you have a table with trades?
What are their names?
How are they related? (Foreign keys and such)

It is like me asking you this now:
"Dear Rob,
What is the shortest route to the supermarket from where I am?"

Quite impossible.

Regards,
Erwin Moller
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple drop down menu with multiple select phpnewbie26 answers 6 July 31st, 2009 05:46 PM
multiple select drop down menu not retrieving correct data phpnewbie26 answers 2 June 30th, 2009 08:45 PM
Place drop down menu selection into a variable to be used in an sql query ponyeyes answers 2 March 27th, 2007 05:49 PM
Align text in my drop down menu? Dan answers 11 July 21st, 2005 08:48 AM