Posts by Júnior Machado • 11 points
1 post
-
1
votes1
answer573
viewsQ: Subcategory listing according to selected category
I have the following code snippet: <?php foreach($categorias as $cat){ $id_cat = $cat['id']; $subcategorias = array(); $sqlsub = Comando::Executar("SELECT * FROM subcategoria WHERE cat_pai =…