First of all, I am using PHP and MySQL in the Joomla Framework (but not interested at this point in the Joomla MVC structure).
I have a list of data from a database (Table A) and next to that I have added a checkbox. When I click on a checkbox, I want the data from the enabled checkbox to be sent (insert a copy of) to a new table (Table B) when I click on the 'Save' button and have that data listed on a new web page. The ones that are unchecked should not be sent to the new table and therefore should be ignored. Also, the 'Save' button must initially be disabled until a checkbox is checked.
Now, there must be a relationship between the existing data in a table (Table A) to the new table (Table B), so for example when the main existing data is deleted from the table (Table A), it should also automatically delete the data in the new table (Table B).
I know some PHP and MySQL but not enough to figure out some of the above.
Can some smart PHP and MySQL guru please point me to the right direction as I'm pulling my hair out, especially with the checkbox issue. Thanks!