I have a mysql database with php running a query on the table. I need to output the measurement of each order.
An example row would be "this order contains 3x6lb of flour"
. I need to get the 3x6lb
. However, some results are also "this order contains 3 x 6lb of flour"
. The possible weights are lb
and oz
.
Output should look like:
$rownum | $measurement
1 | 3x6lb
2 | 5x10oz