Posts by Gabriel Almeida • 75 points
4 posts
-
1
votes1
answer47
viewsQ: Array sum returns only one value
Some time ago I had to execute a sum of arrays with javascript, Example: allData[0].likes = [5,10,15,20,25]; allData[1].likes = [10,2,3,17,15]; Using a solution I found on the Internet I used the…
-
0
votes2
answers295
viewsA: Perform SQL query with two foreign keys from the same table?
Well I want to thank everyone who was willing to help. I decided after a help from my brother and had to use two subquery, may not be the fastest but it works. Here are the solutions: select…
-
0
votes2
answers295
viewsQ: Perform SQL query with two foreign keys from the same table?
I’m creating a recognition system for the company and it was almost over, it’s been some time that I’m trying to carry out this consultation but not getting. I have the following tables:…
-
6
votes1
answer111
viewsQ: Difference between overall, const and define()
So I was studying about POO and MVC structures with PHP and saw that we often need to use global variables (accessible throughout the application) and what’s the difference of using: global $nome =…