Just add 3 days or whatever to now() in it's own field called auction_close
in pseudo, now() + 3 days and have it look something like this: 2002/12/26 5:45:21
Then
if (current date >= to closing date) {
// all bids are closed
} else {
// bidding is still open
}
If you have a place hwere people can view current auctions. For ex:
Auction Item Price Auction Open Auction Close
Auction Item2 Price Auction Open Auction Close
(or using ebay as an example: http://listings.ebaymotors.com/aw/plistings/list/category6357/index.html?from=R4)
and you don't want to display closed items
select * from yourtable where currentdate <= auction_close
Then if someone has that particular item bookmarked (http://cgi.ebay.com/ebaymotors/ws/eBayISAPI.dll?ViewItem&item=1875505463&category=5336)
And you don't want to allow them to bid, you just run that above if statement. If all bids are closed,
just display text that says bidding is closed and don't allow them to bid.
If it's open, just display as normal.
I've never done this before, this is just the first way that popped into my mind. Does this help?
Cgraz