Sry this code has been posted before I just need a bit more help . when I select the winners of the bids id like a box at the bottom with the total of the bids I chose as a winner and it needs to be zero by defalt Since No winner is the first option in the dropdown menu.
[php]
<!--/*for($colIterator=0; $colIterator<$vendorResponseCounter; $colIterator++){
//echo "<th scope=\"col\">$vendorName[$colIterator]</th>";
}*/
//echo "<th scope=\"col\">Lowest for this item</th>";-->
<?php
// loop to create table with bid items and qtys
for($i=0; $i<$counterArrayBidItems; $i++){
echo "<tr>";
echo "<td>$arrayBidQtys[$i]</td>";
echo "<td>$arrayBidItems[$i]</td>";
echo "<td>$arrayBidDescr[$i]</td>";
?>
<td>
<select name="Winning bid[]">
echo '<option value="No_Winner">No Winner</option>';
<?php
// nested for loop to load the cherry picker lowest price for a row
for($cpIterator=0; $cpIterator<$vendorResponseCounter; $cpIterator++){
$cpArrayLowestPrice[$cpIterator] = $mainArrayVendorPrices[$cpIterator][$i];
}
// nested for loop to output undetermined number of cells in the table row
for($rowIterator=0; $rowIterator<$vendorResponseCounter; $rowIterator++){
if($mainArrayVendorPrices[$rowIterator][$i] != "0" && $mainArrayVendorPrices[$rowIterator][$i] != null && $mainArrayVendorPrices[$rowIterator][$i] != '')
{
$dsc = $mainArrayVendorPrices[$rowIterator][$i];
$ttlaz = floatval($dsc);// * $arrayBidQtys[$i];
if($dsc > 0)
{
$dsc = '$' . number_format($ttlaz,2);
}
else
{
$dsc = '';
}
echo '<option value="' . $vendorid[$rowIterator] .'">'.$vendorName[$rowIterator]. ' - ' . $dsc .'</option>';
}
}
?>
</select>
</td>[/php]