1
I’m putting together a page where the person will be able to compare 2 products.
I have 2 tables, categories and products.
The 1st combobox, make a select in the table of categories. When choosing 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 pressing the button would have to be performed a select in the database, taking the 2 id’s of each sublist and display their data 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’ll put the code link here, if anyone can help me solve this problem, I would be very grateful
https://www.dropbox.com/sh/7eupvel35rli2qg/AADJBHRFFprKS1lQNJ06ZcKca?dl=0
Dude, the
ComboBox 01
and theComboBox 02
are to choose categories? because if yes, you will be able to compare different product categories, the ideal would be you have only one category combobox, and after that take the product make two selects to use in comparison.– LucasMotta
Good afternoon Erlon ,Sorry to reply now , I ran out of internet yesterday. The problem of making 1 combobox only , is that if one wants to do search of different brands/ categories , would not work .
– Henrique Felix
It all depends on what he used for
– LucasMotta