Posts by Alexandre Barreiro Neto • 144 points
7 posts
-
0
votes3
answers339
viewsQ: Spring Boot does not recognize the controller when a request with parameters is sent
Spring Boot does not recognize my controller if I submit more parameters in the request. For example: If I send a normal GET request spring boot recognizes my controller:…
-
0
votes2
answers63
viewsA: php filter data inside while
Are you sure you want to have two option equal within the select? It doesn’t make much sense. If yes, I made an example below that fits what you need. Basically the list of records returned from the…
phpanswered Alexandre Barreiro Neto 144 -
1
votes1
answer210
viewsA: List all data of an API in numerical list (Array)
What you can do is Request the API using PHP Curl Transforming JSON into an Object Filter requested data (in case you want the song title and author) Mount an HTML with this data using…
-
1
votes3
answers118
viewsA: Divide value with random numbers
I implemented in a simple way that can solve your problem: <?php $numeros = []; $numeroAnalisado = 100; $randomicoAuxiliar = $numeroAnalisado; if($numeroAnalisado == 1) $numeros[] = 1; else {…
phpanswered Alexandre Barreiro Neto 144 -
1
votes1
answer164
viewsA: How to send JSON as a response to the post
You can make use of the echo on page B together with json_encode. After sending the request from A to B, A will expect a reply from B. Therefore, B will use the combination of echo and json_encode…
-
1
votes2
answers258
viewsA: Is it possible to manipulate SESSION variables to perform SQL Injection?
As friends have commented above, it is important to use tried and tested methods that are therefore safe for filtering data, such as mysql_real_escape_string. However, since your question is related…
-
2
votes1
answer103
viewsA: Generate a random combination on each line
What happens is that when you set the random values for C1, C2 and C3 they really were random and different from each other, carrying the Random function fulfilled its role. If you want them to be…