<span class="fa-stack fa-3x"> <i class="fa fa-circle fa-stack-2x text-primary"></i> <i class="fa fa-check fa-stack-1x fa-inverse"></i> </span> <h4>My bids</h4> </div> </a> </div> </div> </div> </div> <?php $auction = new Auction($conn); //index = auctionID, $auctionList = $auction->recommend($_SESSION['user']['userId']); //print_r($auctionList); //create new array that contains all the indexes of auctionList that has value of 2 $auctionIdArray = []; //key->value because we need the index foreach ($auctionList as $key => $val) { if ($val == 2) { $auctionIdArray[] = $key; } } ?> <h2>Recommended items</h2><br> <table class = "table table-hover table-condensed"> <thead> <th>Item name</th>