Posts by Alexandre Reiff Janini • 121 points
2 posts
-
1
votes4
answers68381
viewsA: Script returning Parse error: syntax error, Unexpected end of file
Another possibility is when using short tags and the server is not configured to accept them. Note: It is not the case of this question, but it is for future references. Short tags: <? echo…
phpanswered Alexandre Reiff Janini 121 -
1
votes1
answer573
viewsA: Subcategory listing according to selected category
Try changing your code to: foreach($categorias as $cat){ $id_cat = $cat['id']; $subcategorias = array(); $sqlsub = Comando::Executar("SELECT * FROM subcategoria WHERE cat_pai = '$id_cat' ");…