• Resolved mostfamiliar

    (@mostfamiliar)


    I’m trying to query all of the data in a specific column and then output it.

    I’m user get_col to do the querying work:

    $postcol = $wpdb->get_col(“SELECT column__name FROM ".$wpdb->prefix."table_name“);

    It says on the wpdb codex that these go into a dimensional array. How do I output the contents of the array?

  • The topic ‘querying database, displaying data’ is closed to new replies.