convert helpers

This commit is contained in:
Russ Long 2018-12-23 09:41:57 -05:00
parent 33c1f99c66
commit d37d3a1051

View File

@ -69,13 +69,9 @@ class WinningBidSelectList
{ {
public static function WinningBidShowNumbers() public static function WinningBidShowNumbers()
{ {
$winning_bid_num_results = DB::select("SELECT $winning_bid_num_results = WinningBids::join('items', 'winning_bids.winning_item_num', '=', 'items.iditems')
* ->orderBy('items.item_assigned_num')
FROM winning_bids ->get();
INNER JOIN items AS items
ON winning_bids.winning_item_num = items.iditems
ORDER BY items.item_assigned_num
");
$winning_bid_num = '<option disabled selected hidden value="">choose...</option>'; $winning_bid_num = '<option disabled selected hidden value="">choose...</option>';
foreach($winning_bid_num_results as $winning_bid_num_result){ foreach($winning_bid_num_results as $winning_bid_num_result){
$winning_bid_num .= '<option value="' . $winning_bid_num_result->idwinning_bids . '">' . $winning_bid_num_result->item_assigned_num . ' - ' . $winning_bid_num_result->item_desc .'</option>'; $winning_bid_num .= '<option value="' . $winning_bid_num_result->idwinning_bids . '">' . $winning_bid_num_result->item_assigned_num . ' - ' . $winning_bid_num_result->item_desc .'</option>';