I am trying to get all values from database column, using wp get_col(). It seems missing something, here is my query
global $wpdb; $table_name = $wpdb->prefix . 'students'; $results = $wpdb->get_col("SELECT * FROM $table_name WHERE groups = ''"); print_r($results); //Output Array (  => 24  => 25  => 26  => 27  => 28  => 29 )
I want my query to print the values( name of the groups) How can I correct this?
Read more here: https://stackoverflow.com/questions/65840054/how-to-use-get-col