I have created two simple tables, one for auctions and one for bids and manaully populated this through PhpMyAdmin. For trial purposes Auction 21 has 3 bids on it.
I have managed to join the two tables together using the INNER JOIN statement and can output the results of the auctions.
$result = mysql_query("SELECT * FROM auctions a INNER JOIN bids b ON a.auction_id = b.auction_id GROUP BY a.auction_id");
I am trying to order the bid_amount from the bids table to show the highest bid when it is printed to screen, but what it is doing is just showing me the first. Auction 21 has 3 bids and 57.00 is the highest bid.
Here are my tables
// auctions
auction_id
auction_title
start_price
// bids
auction_id
member_id
bid_amount
bid_date