I have a problem to join a set of values.
I have a wood marking system. I feed the database with the length x width of the wood
Id, order_id, 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 binds the results to not appear twice the same length and so it joins the measurements to be shown next to that length.
Example of how it would look:
320-20 x 25
310 - 10 x 20
190 - 15
How could I do this?