Posts by KhaosDoctor • 2,699 points
108 posts
-
3
votes1
answer824
viewsA: Send multiple values in an input to PHP, using jQuery AJAX
You can have a structure more or less of the type: <label>Insira os valores</label> <ul id='lista'> <li class='item'>elemento 1</li> <li class='item'>elemento…
-
1
votes1
answer193
viewsA: Values that are calculated, if you store the value with the calculations in the database?
You choose, if your system is architected to have a database processing, then you can already store the final value of the product, but this will prevent you from knowing what were the discounts…
-
2
votes2
answers189
viewsA: Why does Netbeans suggest improving the for?
Netbeans analyzes only the code, not the context in which it is inserted, i.e., if your code can be refactored, it will give you a hint, but it won’t check all your code to suggest a "decent"…
-
1
votes1
answer144
viewsA: how to display the first line of a text snippet by linking it to the page where it is?
An output would be you using php to remove shortcode tags, using the following function: $a= '[shortcode]Hello World[/shortcode]'; echo…
-
1
votes4
answers733
viewsA: How to check if there is only one position in the array element?
Realize a Count in php $count = count($patr); If the count is 1, then it means that the array has only one position. References http://www.w3schools.com/php/func_array_count.asp…
-
0
votes2
answers2195
viewsA: Change Jquery global variable value and use in PHP
Thiago, this variable is not a "global" variable so to speak, it is defined within the scope of jquery and its script, but when the page is reloaded, or undergoes some change in which the code needs…
-
1
votes1
answer798
viewsA: Place label that is printed in PHP inside a div
You don’t have to echo, do it like this: $div = "seutexto"; After you already have the variable value you can use it anywhere within the HTML (as long as it is after the variable assumed the value)…
-
1
votes1
answer278
viewsA: Ajax after page fully loaded
The ready method runs once the DOM is completed, it does not mean that your page is fully rendered. Try using the following code: window.onload = function() { <seucódigoaqui> };…