convert helpers
This commit is contained in:
parent
33c1f99c66
commit
d37d3a1051
@ -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>';
|
||||||
|
Loading…
Reference in New Issue
Block a user