Posts by Franklin Barreto • 301 points
13 posts
-
0
votes1
answer35
viewsA: How to generate a json with an object array
Inside your Question you can put a collection @OneToMany List<Answer> answers; Research more on this note to avoid some problems that may happen, but basically that’s it.…
-
2
votes1
answer39
viewsA: Why is my - flex display not working?
First you need to fix the html structure, you have a lot of Divs closing without opening in Lis. Then you need to apply the style in ul and not in div. <div> <ul class="forms2">…
-
1
votes1
answer58
viewsA: Behaviorsubject does not accept initial value equal to null
You are saying that it is of the type Comodo[] so you need to pass a valid type that can be an empty array. private comodoSubject$: BehaviorSubject<Comodo[]> = new…
-
1
votes1
answer52
viewsA: Function to simplify records in Mysql with PDO - You are saving all identical values
You need to pass the variable by reference and not by value. // LOOP PARA O bindParam ============================================================================== //Colocando o & na sua…
-
0
votes1
answer20
viewsA: Error in deleting a user using $_SESSION['']. It continues in the system even after its deletion
You are deleting the user but have not deleted the session $remove = "DELETE FROM funcionario WHERE cd_funcionario = :cd_funcionario"; $remocao = $conexao->prepare($remove);…
phpanswered Franklin Barreto 301 -
1
votes1
answer92
viewsA: How do I use Ajax to send form data in JSON format to REST API in PHP?
Missed you calling when the gift has been read using $(Document). ready <script type="text/javascript"> //EVENTO DE CLICAR NO SUBMIT $(document).ready(function() {…
-
0
votes1
answer77
viewsA: How to take the value of a select option and popular within a jsp variable
You’re mixing JSP with javascript; <script type="text/javascript"> function update() { var select = document.getElementById('STR_MAC'); var text = select.options[select.selectedIndex].text;…
-
0
votes1
answer124
viewsA: How to make a user changes with the PUT method in Springboot
1° it is not a good practice to traffic their entities, but let’s leave it for later. You’re looking for an update, but you’re not looking for an object managed by jpa. Your code should look…
-
0
votes1
answer33
viewsA: Create options within a Java class
You could create a "type" in the teacher class where it would be an Enum and there put a logic where it would receive a characteristic interface with its specialties. I’ll post an example of code…
javaanswered Franklin Barreto 301 -
1
votes1
answer34
viewsA: How to use the Jquery Keyup event to show records within a div coming from a PHP script?
You have concatenation problem. Change the script $stmt = $db -> prepare('SELECT prodID, nome, preco FROM produtos_tbl WHERE nome LIKE '%$pesquisar%''); for $stmt = $db -> prepare('SELECT…
-
1
votes2
answers44
viewsA: I need help on the IF command, it doesn’t work I don’t know why, it closes the program when I write FRONT is to be a writing game
For comparison of Strings you must use equals. if (comando.equals("frente"))
-
0
votes3
answers56
viewsA: Sum of columns
You didn’t specify the problem you’re encountering, but here’s a java solution that looks very similar to C so you can get the idea. int[][] matriz = new int[3][3]; int[] novo = new int[3]; for (int…
canswered Franklin Barreto 301 -
1
votes2
answers44
viewsA: Error while performing a SQL filter
Think with me, you said "if you can’t find anything without quotation marks, it’s a mistake", If I understood the no locates anything would be $senhalog? If yes will definitely give error because…