Posts by Robson Piere • 156 points
5 posts
-
1
votes1
answer201
viewsA: Help in JS arrays
The mistake is in: medalhas[numero] = "undefined" When using only one = instead of == you are assigning the value to variable and not comparing. I also suggest checking the function index, which may…
-
2
votes1
answer1001
viewsA: Uncaught Referenceerror problem: answer is not defined
The problem is that your request ajax is an asynchronous function, so the response variable does not yet exist because the ajax is still running. A possible solution is to use the $.when() function…
-
1
votes1
answer687
viewsA: Extract information from php json
I see that when you turn the file into json it becomes an object with other properties internally. The variable $json is an object. You can access its properties in this way:…
-
3
votes1
answer257
viewsA: What is more efficient, a complex query or treat the results?
I believe that the answer will vary according to the scenario. The sgbd’s before making a query, try to optimize it by creating a plan to execute the queries. I see you are using mysql. One way for…
-
4
votes1
answer393
viewsA: How to use GIT and system update right after commit
There is a way through git , that is using hooks. In short you create a repository of the type bare, who will be responsible for receiving the commits and copy them into the production pulp. In that…