Posts by Rodrigo Bezerra Rodrigues • 149 points
13 posts
-
0
votes1
answer67
viewsA: Select checbox automatically
First set the id in your html so it doesn’t repeat and add the ref attribute to the inputs and then find the date like this: $calendar .= "<td bgcolor='$color' data-semana=''><font…
-
5
votes2
answers1974
viewsQ: Pick URL with regular link expression
I am trying to extract only the URL if an expression is validated with the tag [monitory]. The expression I use is this: (?=<a.*\[monitory\].*href=["|'][http:|https:]?[\/\/]).*?["|']> And for…
-
2
votes2
answers1974
viewsA: Pick URL with regular link expression
Looking at another question made on stackoverlow I understood one thing. The ( parentheses serve to capture so I modified my expression to:…
-
0
votes1
answer834
viewsA: How do I get the right CSS in DOMPDF?
Try applying Landscape to css like this: @media print{@page {size: landscape}}
-
-1
votes1
answer68
viewsA: How to escape monetary value commas in a php array?
You can use something like: $data = [ '0,00', '0,00', '0,00', '0,00', '0,00', '0,00', '0,00', '0,00', '2.468,00', '2.093,00', '600,00', '0,00' ]; $valores = array_map(function($valor){ return…
phpanswered Rodrigo Bezerra Rodrigues 149 -
-1
votes1
answer39
viewsA: Is there a difference between services, plugins and modules within a mvc framework?
Services is something related to your application’s services such as: Generate a banking ticket, generate a pdf document etc... Plugins are services too, but are third party service something…
-
0
votes2
answers41
viewsA: Save Column Name as item in another Column
You could search the return array itself and not create a new array. Dai would have the reference of which column took the largest. $maior = 0; $colunaMaior = ''; while($aux =…
-
1
votes1
answer87
viewsA: How to return an array and subarray value?
Make a second foreach like this: $generos = array( 'filmes' => array( 1 => 'Ação' ), 'series' => array( 1 => 'Artes Marciais' ), 'animes' => array( 1 => 'Aventura' ) );…
phpanswered Rodrigo Bezerra Rodrigues 149 -
0
votes1
answer74
viewsA: Problem with PHP Expense Calculation
I see that you are going a lot on the requested chart or is it wrong. You should treat these calculations directly in the database without having to make several Selects and several whiles. Your…
-
0
votes1
answer65
viewsA: Data return in form inputs
If the data you say is in the javascript function, you can throw the data anywhere. For example: ... success: function(data){ document.querySelector('#endereco').value = data.endereco…
phpanswered Rodrigo Bezerra Rodrigues 149 -
0
votes1
answer38
viewsA: Mysql Date_add ranges in the same PHP code
I believe it could be so: $sql2 = "UPDATE usuarios SET expira = DATE_ADD(DATE_ADD(DATE_ADD(DATE_ADD(expira, INTERVAL $diasc DAY), INTERVAL $horac HOUR), INTERVAL $minutoc MINUTE), INTERVAL…
-
0
votes1
answer89
viewsA: Is it possible to connect my Laravel app with Vue or Angular?
Laravel already comes pre-configured with Vue JS. You can work the Laravel in api form and separate front without any problem, both Vue JS and Angular etc... Going to taste. Greetings,…
-
1
votes1
answer58
viewsA: Redirect without being detected
I found a way: <a href="http://example.com" referrerpolicy="no-referrer">ReferrerPolicy Attribute</a> Or modify the head of your html by adding the meta: <meta name="referrer"…