I’m confused as to how the table structure needs to be set up to do this. An item has a bid and the bid belongs to the item. The person who accepts the bid on the item needs to be the owner of the item. I don’t know how to pass the Item owner’s ID through to my bid accepting function.
Share
If a bid has an item and an item has an owner you should be able to query the owner from the bid
Something like so:
and then check that the owner is the submitter