Posts by Markomafs • 264 points
4 posts
-
3
votes3
answers2742
viewsA: Is there a better way to insert an option in select with jquery?
You can instantiate a DOM Option class. var option = new Option('TESTE','4'); $('#municipio_evento').append(option); You can test running on Jsfiddle, follow the link Option Append Test : Note: I…
-
7
votes2
answers218
viewsQ: Quit two PHP Foreachs
I need to iterate several Collections and if I find a condition I should leave more than one iteration loop. Ex.: foreach ($order->getItemCollection() as $item) { foreach…
-
2
votes3
answers280
viewsQ: How to Show the file path opened in VIM
Sometimes I leave the file open for a long time, and I don’t know which directory it is in because the environments of my application are separated by path. Ex: prod /loja/prod/app/index.php teste…
-
1
votes2
answers113
viewsA: Error adding COUNT in CONCAT
The Best Solution is to process this in the Application, but if there is a reason to resolve it in SELECT, I suggest you use a sub-select of the amount of items of each ID_PRODUTO. See if it works…