ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

print values in row and column

August 28, 2012 5:06pm

Subscribe [1]
  • #1 / Aug 28, 2012 5:06pm

    venkdevelop

    5 posts

    I am querying my database using this code (showing part of code):

    I use Cartthrob, Matrix, 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

     

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases