Posts by Marcos Fabre Junior • 111 points
9 posts
-
2
votes2
answers281
viewsA: Reload php page using ajax with updated data
In $.post, the third parameter is a callback, which will run after the request receives a reply Try something similar to the code below: $.post("controle/compras-volume-entrega.php", dados,…
-
0
votes4
answers1033
viewsA: How to get PHP session id with jQuery?
Set it as an input value and then take it with jQuery. in HTML: <input type="text" id="valor" value="<?=$valor?>" /> in jQuery: var valor = $('#valor').val();…
-
2
votes1
answer20
viewsA: Error when setting constants
Try it like this: define('RS_LIB_PATH', __DIR__);
-
1
votes1
answer62
viewsA: play login data in API parameter
If it is in this format use: $email = $_GET['EMAIL']; $cpf = $_GET['apiCODCPF'];
-
1
votes1
answer87
viewsA: Personal how to go through an array with multiple requests?
Run a foreach at each level of the array. foreach($retornoDaAPI['retorno'] as $key => $value){ foreach($value['contas'] as $key2 => $value2){ //e assim sucessivamente } }…
phpanswered Marcos Fabre Junior 111 -
0
votes2
answers1855
viewsA: Create an id for an element from a condition with Javascript
Maybe you can use jQuery’s date function: $('div').data('id','valor-do-id'); In Html something like this will be generated: <div data-id="valor-do-id"></div> You can capture the data…
-
2
votes1
answer173
viewsA: How to add SMTP mailing in phpmailer?
$mail->isSMTP(); // Define que a mensagem será SMTP $mail->Host = 'mail.dominio.com.br'; // Endereço do servidor SMTP $mail->SMTPAuth = true; $mail->Username =…
-
0
votes1
answer36
viewsA: VSCODE file explorer follows open file
Change to false below statement: "explorer.autoReveal": false
visual-studio-codeanswered Marcos Fabre Junior 111 -
0
votes5
answers11915
viewsA: Count number of Mysql query records in PHP
$sql="SELECT COUNT(id) AS qtdRegistros FROM processo"; echo $conexao->query( $sql )->fetch_object()->qtdRegistros;