0
I’m having a problem uniting a set of values.
I have a wood marking system. I feed the database with the length x width of the wood
Id, id_request, length, width, date
Registros:
1, 3, 320, 20, 05-25-2017
2, 3, 320, 25, 05-25-2017
3, 3, 310, 10, 05-25-2017
4, 3, 310, 20, 05-25-2017
5, 3, 190, 15, 05-25-2017
Now I need a routine in PHP or Mysql that joins the results not to appear twice the same length and this way it joins the measures to be shown next to this length.
Example of how it would look:
320-20 x 25
310 - 10 x 20
190 - 15
How could I do that?
We should not use functions of the "mysql" extension because its development has been discontinued. If you add in Mysqli or PDO tags I publish the answer :)
– user60252
Ready @Leocaracciolo
– Halan Schlickmann