1
Good night. I have an input 'category', where the user selects the existing categories, and below a field 'subcategory', if the user wishes to register. In Mysql you already have the tables created, they are: tbdcategoria (idCategoria, dscCategoria), and tbdsubcategoria (idSubcategoria, dscSubcategoria, idCategoria).
How can I make when the user clicks 'register', link the subcategory created to the selected category?
you are already relating the two tables
– Wees Smith