I am querying my database using this code (showing part of code):
In back end I use ExpressionEngine, Matrix, Cartthrob and DataGrab
I am using MySQL and PHP to write the code
foreach($retailprices->result_array() as $row)
{
print_r($row);
This is the result:
Array ( [row_order] => 1 [col_id_3] => 3.500 )
Array ( [row_order] => 2 [col_id_3] => 12.95 )
Array ( [row_order] => 3 [col_id_3] => 37.45 )
I want to extract 3.500, 12.95 and 37.45 to an array
Then I want to print them one by one
using array. Output should look like:
3.500
12.95
37.45
Please some one guide me to solve this issue.
Thank you very much
This prints the array.
The output will be
Is this what you are looking for?
EDIT :
EDIT 2 :