Posts by Joepreludian • 236 points
3 posts
-
7
votes2
answers183
viewsA: How to apply the DRY (Don’t Repeat Yourself) strategy to this code?
Hello! First of all, it will help a great deal to identify the code. Well, you are repeatedly using the datatable with default settings. You could do the following. In the tables you use, in html,…
-
1
votes2
answers740
viewsA: Why is Ajax only working the first time?
In your HTML section I didn’t see any DIV that has the class "conteudoAjax". You may be trying to access a div that does not exist in your code, since when you requested the filter a second time,…
-
4
votes2
answers286
viewsA: Return with all foreach lines
You can also rearrange your code this way: <?php $recursos_data = array( array( "id" => "0", "recurso_nome" => "madeira", "producao" => "%produz%", "estoque" => "200" ), array( "id"…