Posts by João Dias • 116 points
8 posts
-
1
votes1
answer288
viewsA: Help with accents
Check the charset that is configured in the database table. It must be Latin-1 or ISO-8859-1; Check the charset of the connection between PHP and the database. It should also be Latin-1; Check the…
-
-1
votes1
answer616
viewsA: Javascript call within PHP
Making the call that way is bad practice. Put the function in a JS file and escape to the login page in the onload event of the body tag the call of the function show(). <?php // Suas regras de…
-
0
votes1
answer475
viewsA: pass input value to php session variable without page Reload
Using asynchronous charging, using Ajax. Example with jQuery: Page form.php <html> <body> <form> <form method="post"> <input type="text" name="valor1" id="valor1">…
-
0
votes3
answers108
viewsA: My input checkbox does not support Javascript
Try this: <script> var elements = document.querySelectorAll('.t'); elements.forEach(function(value, key){ elements[key].addEventListener("click",selecionar); }); function selecionar(item) {…
-
-1
votes1
answer911
viewsA: Integration with Asaas boleto API
I recommend taking the course available at https://www.youtube.com/watch?v=_n57YVUVT2A&list=Plvsnl1phdwvsrvzxykxbc5cpm4su7-c2T. It lasts 40 minutes in total and you’ll come out understanding…
-
-2
votes1
answer51
viewsA: start a function after X minutes on a php page
It’s called asynchronous processing. There are several ways to do this, the first: <?php // Seu codigo aqui... // Aqui chama o script que será executado em 7 minutos exec("php…
-
1
votes1
answer254
viewsA: Sending email with multiple senders and recipients
For security reasons of SMTP (Gmail in the case), the FROM tag (From:) will always be filled with the email of the account authenticated in SMTP, ie of the gmail user in the case. You will only be…
-
2
votes2
answers73
viewsA: Sum total of a loop
You’re zeroing the totalizers at every loop step, and the totalisers are cumulative, so I suggest your code stays that way: $total_receitas_recebidas = 0; $total_receitas_a_receber = 0;…