It's been a long day and for some reason this is totally eluding me...
My Wordpress database request looks like this:
$results = $wpdb->get_results($sql);
And the output looks like this
Array ( [0] => stdClass Object ([id] => 2 [organisation] => Company 2 )
[1] => stdClass Object ([id] => 1 [organisation] => Company 1 )
)
I need to turn it into an array that looks like this:
Array ([1] => Company 1, [2] => Company 2)
This must be dead easy, but I just can't see it for some reason...Grateful for any pointers...