Check box in php for sql database and show result in new form?
-
-
Answer:
You need to provide more details than that. However, I can give you few pointers. When making HTML checkbox, give it a name, eg: <input type="checkbox" name="myCB"/> Then in PHP code you could like this: <?php if ($_REQUEST['myCB']) mysql_query("SELECT ..... WHERE someCondition=true"); else mysql_query("SELECT ..... WHERE someCondition=false"); ?>
l0yalt at Yahoo! Answers Visit the source
Other answers
You need to provide more details than that. However, I can give you few pointers. When making HTML checkbox, give it a name, eg: <input type="checkbox" name="myCB"/> Then in PHP code you could like this: <?php if ($_REQUEST['myCB']) mysql_query("SELECT ..... WHERE someCondition=true"); else mysql_query("SELECT ..... WHERE someCondition=false"); ?>
DRAX
Related Q & A:
- How To Repair Sql Database?Best solution by Ask.com old
- Are SQL Injection vulnerabilities in a PHP application acceptable if mod_security is enabled?Best solution by Programmers
- How to parse .log file and insert into database in PHP?Best solution by unix.com
- How can I check captcha with PHP?Best solution by Stack Overflow
- How do I change a password directly in the PhpBB3 SQL database?Best solution by Server Fault
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.