Jump to content

checkbox validation -> MySQL table


phpnewbie112

Recommended Posts

Hello, could you pls advice how can I do the following:

 

I have 2 tables where both have an identical field "Age", I created a dropdown to query both tables and print out results for the fields with identical values (ex: results for Age of "18+" will be queried from both tables and displayed). I would like to add a "checkbox" near the printed result and once selected and click on a botton, the results should be inserted into a 3rd table with predefined fields... any advice is very much appreciated.

 

Result explanation:

 

Dropdown result:

- field1| field2 | Age (from Table 1) "checkbox" comes here

- field1 | field2 | Age (from Table 1) "checkbox" comes here

etc...

 

- field1| field2 | Age (from Table 2) "checkbox" comes here

- field1| field2 | Age (from Table 2) "checkbox" comes here

etc...

 

I want to be able to choose the 1st and 4th for example and click on "save" and send the data to a seperate 3rd table.

Link to comment
https://forums.phpfreaks.com/topic/98874-checkbox-validation-mysql-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.