1
I have the following problem and I will ask a question in a didactic way so that it can be useful to all users who may need it. I want to conduct a consultation SQL that meets all requirements and returns values.
To tbl_cor
In this case it is to register the product with all its possibilities of colors. This will be done in another form where a drop will return all products for the choice of one and later registration of possible colors.
tbl_produto
id_prod
nome_prod
preco_prod
cat_prod <----- id da categoria
datacad_prod
tbl_categoria
id_cat
nome_cat
tbl_cor
id_prod
cor_prod <----- string de um dropdown do form
Example:
The produto
is Kombe of categoria
utility vehicle available in cores
green, blue, white, yellow. How to return through a query SQL this data?
In this example you are not showing the category. How to show it? http://axitech.com.br/veiculo.php
– Marcos Vinicius
I made the change in the code to include the category. Abração.
– TonCunha
Then I explode the returned data and put in the dropdown as product items, this?
– Marcos Vinicius