You are here: Select records from result of drop down selection « MySQL Databases « IT news, forums, messages
Select records from result of drop down selection

Posted by C. David Rossen on 09/25/45 11:19

Hello:

I think I have what would be an easy solution for most people that know
mysql. I just don't know it very well.

I have a membership database of a professional organization of lawyers,
cpa's, etc. There is a field called "designation" (laywers, cpa's, clu's,
etc). I am going to build a search form with a drop down box so they can
search by designation. How would I write the select statement? The table
name is directory.

select from directory where designation = ???????? order by LastName ASC

Not sure how to reference the designation choice from the drop down list in
the select statement.

I also wanted to do a text search for LastName

select from directory where LastName like ?????? order by LastName ASC

If someone can lend a novice a hand, I'd greatly appreciate any help. Thanks
in advance.

David

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация