I'm putting together a page where the person could compare 2 products.
I have 2 tables, categories and products.
The 1st comboBox makes a select in the category table. When you choose a category, it calls a file that sees which products belong to that category.
So when choosing 2 products in the 2nd combobox (sublist) and pushing the button would have to be done a select in the bank, taking the 2 id's from each sublist and displaying the data from them below.
Basically it would work like this:
<combo01> ComboBox 01</combo>
<combo02> ComboBox 02 </combo>
<combo01> sublist 01</combo>
<combo02> sublist 02</combo> //o conteúdo das sublists altera de acordo com o que foi selecionado no comboBox
<btn>Comparar</btn> //ao clicar em comparar, faria um select no banco com os 2 id de cada sublist, e mostraria os dados abaixo.
I will put the link of the codes here, if anyone can help me to solve this problem, I would be very grateful