Hi all:
I am adding a dollar amount to itself in a wile loop yet the total come up as "1".
Any help appreciated!
$vTotal = 0;
$vItemList = "";
$resultItems = mysqli_query($link, $queryItems);
while($rowItems = mysqli_fetch_array($resultItems, MYSQLI_ASSOC)){
$vTotalItem = number_format($rowItems["quantity"]*$rowItems["price"],2);
$vTotal = $vTotal+$vTotalItem;
$vItemList .= "<tr><td style='width:80%;'>".$rowItems["quantity"]." ".$rowItems["product"].$vDiscounted."</td><td style='width:20%; text-align:right;'>$".$vTotalItem."</td></tr>";
}