34534534534555
IS-IT--Management
Hello all,
I have the following query:
A USER can have many AUCTIONS. An AUCTION can have many BIDS.
At present this is only displaying one auction for the user not all of them. It is displaying the correct information for each instance.
Would someone please be so kind as to modify this to show all the auctions for a user.
| Feedback is always appreciated as this will help to further our knowledge as well |
I have the following query:
Code:
$sql = "SELECT auction.auctionid, book.title, bid.bidusername, bid.bidprice
FROM auction INNER JOIN book ON (auction.isbn = book.isbn)
LEFT JOIN bid ON (auction.auctionid=bid.auctionid)
WHERE sellerusername = '$username'
ORDER BY bid.bidprice DESC
LIMIT 1"
A USER can have many AUCTIONS. An AUCTION can have many BIDS.
At present this is only displaying one auction for the user not all of them. It is displaying the correct information for each instance.
Would someone please be so kind as to modify this to show all the auctions for a user.
| Feedback is always appreciated as this will help to further our knowledge as well |