Posts by Jakson Fischer • 556 points
18 posts
-
0
votes1
answer80
viewsQ: PHP returning an invalid JSON
Good morning. I am working on a system where all Curl returns will be saved in a JSON at the end of the application to be used by the Mobile guys. The system is all in PHP, basically it looks for…
-
1
votes0
answers91
viewsQ: Create heatmap of a football field with heatmap.js
I need to create a heat map with a football field, however, I’m not getting... I’m using heatmap.js (at this link), but I’m not getting it... I have already followed the step-by-step that is given…
-
-2
votes2
answers1078
viewsQ: Bootstrap CSS issues in DOMPDF
I’m using the DOMPDF to print a CV that picks up the data via $_GET of the URL. When I "print" the file on the screen, just the HTML, I can get exactly what I need, but when I try to turn the…
-
3
votes3
answers229
viewsA: How do I access the value of this array in javascript?
You will access the same way in php: var array = [{"nome":"Teste","descricao":"Apenas um Teste","ativo":"1","id":6},[{"nome":"Categoria"}]] console.log(array[0]['nome'])…
javascriptanswered Jakson Fischer 556 -
0
votes1
answer42
viewsA: How to filter by categories in php?
I’ll try to give you a starting point. Send the category name using the method _GET, from there you can use the code below as a base. Remembering, this will only take the name of the category and…
-
0
votes1
answer50
viewsA: Take Multidimensional Array Specific Data
You can access this way: //Montagem do seu array: $teste = Array("by" => "symbol", "valid_key" => 1, "results" => Array ( "PETR3" => Array ( "symbol" => "PETR3", "name" =>…
-
2
votes1
answer165
viewsA: Get values from an array separately
In the form below, all your information will be displayed in the correct way: <?php $nomes = Array("João Paulo", "Maria Silva", "José Santos", "Pedro Matoso"); foreach($nomes as $nameC) { echo "…
-
-1
votes1
answer441
viewsA: How to treat duplicated backslash in json
As requested in your comment, follow an example of substitution with the str_replace(). $var = "C\o\i\s\a"; //$replace = str_replace('\', '/', $var); echo str_replace('\\', '', $var) //Saída: Coisa.…
phpanswered Jakson Fischer 556 -
2
votes2
answers183
viewsA: Is it possible to convert an integer into an Array in C or PHP?
In PHP you can do this easily with the function str_split(). Following example: <?php $num = strval(5634); $array = str_split($num); //Retorno: Array ( [0] => 5 [1] => 6 [2] => 3 [3]…
-
3
votes2
answers342
viewsA: Enable/Disable SELECT field
I just made a change to value select, as it starts at 0, every time he checks and finds the value "", will treat it the same way. For this, I inserted with the captions below: CC: Conta Ccurrent CP:…
-
1
votes1
answer52
viewsA: How do I make a form modify words?
You can use Jquery to your advantage. Try the following and see if this is what you are looking for. $(function() { $("#inserir").click( () => { var link = $("#link").val(); console.log(link)…
-
0
votes2
answers492
viewsA: How to check if there are only numbers in the CPF and CEP in SQL
This can be done within oneself input, create a: <input type="number" name="cpf" /> It will send only numbers. What you have to be careful about is that this field can send negative numbers,…
sqlanswered Jakson Fischer 556 -
0
votes2
answers124
viewsA: Array Duvida JS
You can use the for and do so: function produto(y){ var res = 1; for(var x = 0; x < y.length; x++) res *= y[x]; return res; } console.log(produto([1, 4, 7])); I hope I’ve helped.…
-
-1
votes2
answers398
viewsA: How to clear shopping cart after checkout
Carlos, Do the following, after inserting it into your bank, check if it was done through if and clear the session: //$insere será a variável com o true ou false da inserção if($insere) { //Se os…
-
2
votes2
answers61
viewsA: Problems with the return of $_POST values
thanks for who volunteered and tried to help, but I found the mistake... Inside the template has a js responsible for the inputs, it clears all values sent to Php by $_POST if it is not declared, so…
-
1
votes2
answers61
viewsQ: Problems with the return of $_POST values
I am sending, through a form, an email. I do the tests, but it receives only 3 of the 4 fields, it is simply as if the field with the name and con_phone did not exist. HTML: <form…
-
0
votes3
answers1431
viewsA: Page showing interrogation and bench showing accent?
Opa... You can do this in many ways... You can set it in PHP itself by placing it at the beginning of the document <?php header("Content-type: text/html; charset=utf-8"); ?> You can speed up…
-
2
votes2
answers10072
viewsA: How to rename a local branch in Git?
I saw a lot of people with problems, using the <> signals to try to rename the branch... Well, to simplify, let’s say you have a branch called Nfseissonline, but you come across the situation…
gitanswered Jakson Fischer 556