Viewing 2 replies - 1 through 2 (of 2 total)
  • You have duplicated it with $wpdb. That is as far as $wpdb goes. You now have a PHP associative array. Just loop over it.

    Something like:

    foreach ($myrows as $v) {
      echo $v['column1'],$v['column2'];
    }

    Since you specifically asked for an associative array, you will have to have the names of the table columns, or loop though each $v individually. If you used ARRAY_N instead you could use index numbers.

    Thread Starter yeagerc50

    (@yeagerc50)

    Sometimes the answer is so simple I look right past it.

    Thank You!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to get row data’ is closed to new replies.