Php coding to make sql search query with four drop down combo boxes.?
-
My sql table named pets. Columns named breed, color, size, gender, postal code. Html page has four drop down boxes named the same, with different options for selection in them. I want to make a sql query where when one option, say breed Akita is selected, the rows for all the akita's with different characteristics mentioned are displayed in the same page. Same with the other columns. Postal code column should be searched as a text box. It might sound easy, but I ve been breaking my head as I don't find an answer. Thanks for your help.
-
Answer:
"I want to make a sql query where when one option, say breed Akita is selected, the rows for all the akita's with different characteristics mentioned are displayed in the same page." Are you looking for PHP code or a SQL query? The query is straightforward as what you're describing is just a simple: SELECT * FROM pets WHERE columnName = 'columnValue' For example, SELECT * FROM pets WHERE breed = 'Akita'
rapero10... at Yahoo! Answers Visit the source
Related Q & A:
- How can I optimize this dynamic SQL query in oracle with PL/SQL?Best solution by docs.oracle.com
- How to convert sql query to Hibernate Criteria query?Best solution by Stack Overflow
- How to make only ONE Sql query?Best solution by Stack Overflow
- How to present large dataset from a SQL Server query?Best solution by stackoverflow.com
- How to make a MySql query faster?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.