convert helpers
This commit is contained in:
parent
98609a7883
commit
ea29b9b634
@ -85,14 +85,12 @@ class WinningBidderSelectList
|
||||
{
|
||||
public static function WinningBidderShowNumbers()
|
||||
{
|
||||
$winning_bidder_num_results = DB::select("SELECT
|
||||
winning_bidder_num, bidders.*
|
||||
FROM winning_bids
|
||||
INNER JOIN bidders AS bidders
|
||||
ON winning_bids.winning_bidder_num=bidders.idbidders
|
||||
GROUP BY winning_bidder_num
|
||||
ORDER BY winning_bidder_num
|
||||
");
|
||||
|
||||
$winning_bidder_num_results = WinningBids::join('bidders', 'winning_bids.winning_bidder_num', '=', 'bidders.idbidders')
|
||||
->groupBy('winning_bider_num')
|
||||
->orderBy('bidders.bidder_assigned_number')
|
||||
->get();
|
||||
|
||||
$winning_bidder_num = '<option disabled selected hidden value="">choose...</option>';
|
||||
foreach($winning_bidder_num_results as $winning_bidder_num_result){
|
||||
$winning_bidder_num .= '<option value="' . $winning_bidder_num_result->idbidders . '">' . $winning_bidder_num_result->bidder_assigned_number . ' - ' . $winning_bidder_num_result->bidder_fname . ' ' . $winning_bidder_num_result->bidder_lname .'</option>';
|
||||
|
Loading…
Reference in New Issue
Block a user