Here is what I have so far:
function get_highest_bid_info(){
global $wpdb;
$postid = get_the_id();
$table = $wpdb->prefix . "jwp_bids";
$wpdb->get_results(
"SELECT email, max(bid_amt)
FROM $table
WHERE post_id = '$postid')"
);
Now I want to assign those two values to independent variables such as $high_bid
and $high_bidder
. I know the two values are in an array of some sort. I read in the codex but don't ascertain from that How to access and assign them?
Any help is greatly appreciated. I'm learning here :)
Thanks!