Posts by André Miani • 131 points
11 posts
-
0
votes2
answers62
viewsA: How to play this value for an input field?
In fact this question should not be tagged with PHP. But if you want to set the input id use: $(".tt").click(function() { var valor = $(this).parent().parent().find('.tes'); /* define o valor do…
-
0
votes1
answer454
viewsA: ERROR: Object of class mysqli_result could not be converted to int
The problem is actually between lines 10 and 11 of your code. (linha 10) $jogos = mysqli_query($strcon, "select JOGOS from estoque"); (linha 11) $novaquan = $jogos - $quantidade; //ESSA É A LINHA DO…
-
0
votes1
answer65
viewsA: Retrieve inline CSS attributes with PHP
If you can print an ID for each of these Divs, you could try something like this: function explodeAttributes($string) { return explode(':', $string); } $domDoc = new DOMDocument(); $html_string =…
-
3
votes3
answers651
viewsA: Treat Json return array with CURL
Another option to create an array from another array using a key like index would be to use the function array_column of PHP. $lista = array( 3152=>array('codigo'=>3152),…
-
0
votes1
answer31
viewsA: PHP sends email, but some providers do not receive
I would first try to use a more complete header: $to="[email protected]"; $subject="Título da Mensagem"; $from = 'Email do Sender <[email protected]>'; $body='Hi '.$name.',…
-
0
votes2
answers107
viewsA: Modify wp-login.php content
Another solution would be to use the functions.php of your Child to insert these elements dynamically. Example: function my_custom_login() { echo '<script>…
-
0
votes2
answers64
viewsA: How to include php files containing "session_start()", "echo", etc., in another php file without the "headers already sent" error?
Man, I’d change the way I do it. would bring the includes to the top of the file inside includes, in place of echo would throw the results for variables finally where the includes were, would echo…
phpanswered André Miani 131 -
0
votes2
answers184
viewsA: Relate category tables to subcategories
I recommend that you search the web about Combos Aninhados, Combos Dinâmica. You will need PHP + Javascript to resolve this type of situation. See this example and adapt to your use:…
phpanswered André Miani 131 -
2
votes0
answers45
viewsQ: Algorithm to match department, category, and subcategory of a BD with a received string?
From a non-standard string, I sometimes receive the equivalent of department/category, sometimes equivalent to category/subcategory, sometimes equivalent to department/subcategory, sometimes…
-
2
votes1
answer832
viewsQ: How to run the same php script via cron without overloading?
What is the best way to run the same php script several times by making random queries for a given column with a limit of 1000 per query of the same mysql table via cron (Cpanel) without generating…
-
3
votes1
answer791
viewsQ: How do I show a clicker while processing a javascript function?
I have a radio button that when clicked, performs a function that mounts a datepicker. But the function mountDatepicker is only loaded after a few seconds, after consulting the three Apis to then…