Posts by Mustache Web • 45 points
6 posts
-
-2
votes4
answers4554
viewsQ: GROUP BY and ORDER BY Mysql
When I send the Query: SELECT * FROM tabela WHERE id_cliente = '$id_cliente' ORDER BY ano DESC Duplicated values are returned because there are duplicate values in the table. But I want to return…
-
2
votes1
answer139
viewsQ: Sort results with month and year
I have a table with the fields mes E ano. How can I sort the results according to the month. I’m already ordering according to the year => SELECT * FROM tabela WHERE id_cliente = '$id_cliente'…
-
0
votes1
answer150
viewsQ: Do not repeat returned Mysqli data
I have this code that brings me the months registered in the bank. But as it has several lines, I want to return only once each value. // Fazendo a conexão $conexao =…
-
2
votes1
answer700
viewsQ: Pick all dates of a day of the week
I have a code that takes all the dates of a particular day of the week. Ex. 5/06/2017 = Monday. The code is working perfectly. But it is limited only 1 day of the week, I would like to "spend" more…
-
0
votes0
answers33
viewsQ: Best way to use Foreach
I have a bit of code, but I believe that is not one of the best, because I am beginner in programming. The values are coming duplicated, I would like to know if the way I am performing the code is…
-
0
votes1
answer58
viewsQ: Count True values in an Object
I got this feedback from an API: object(stdClass)[2] public 'data' => object(stdClass)[44] public 'id' => float 3.5795374673835E+14 public 'completed' => boolean false public 'name' =>…