auction_bid_history($nid)
ecommerce-5--4/contrib/auction/auction.module, line 134
Displays a bidding history for the passed node id. Currently displays that data in a table with no option to retheme in anything but a table.
$nid Number, the Node ID
String, the HTML table with the user bid shitory
<?php
function auction_bid_history($nid) {
$result = db_query('SELECT u. uid, u.name, b.* FROM {ec_auction_bid} b
INNER JOIN {users} u ON u.uid = b.uid
WHERE b.nid = %d ORDER BY b.created DESC', $nid);
while ($data = db_fetch_object($result)) {
$bidders[] = $data;
}
return theme('auction_bid_history', $bidders, $nid);
}
?>