auction_bid_current($nid)
ecommerce-5--4/contrib/auction/auction.module, line 32
When passed a node id, returns the current bid, bidder, date and number of bids.
$nid Number, the Node ID
<?php
function auction_bid_current($nid) {
$result = db_query('SELECT * FROM {ec_auction_bid} WHERE nid = %d ORDER BY created DESC', $nid);
$high_bid = db_fetch_array($result);
$high_bid['count'] = db_num_rows($result);
return $high_bid;
}
?>