lamasu
12-12-2010, 02:15 PM
Hey, I've been working on a php webshop for a while but now i've run stuck hoping you guys can help me.
This is my PHP:
THIS IS JUST A PART OF A BIGGER FUNCTIONAL CODE
$price=$row['productPrice'];
echo '<div class="baskitem_price">€';
echo $price;
echo '</div>';
This is my HTML:
<div class="baskitem_total"><span style="color:#06C;">Total amount: </span>€</div>
I've got several baskitem_price divs and now i need a little script in PHP or Javascript that will add up all the baskitem_price divs and display the answer in the baskitem_total div.
Hope you guys can help me.:confused:
This is my PHP:
THIS IS JUST A PART OF A BIGGER FUNCTIONAL CODE
$price=$row['productPrice'];
echo '<div class="baskitem_price">€';
echo $price;
echo '</div>';
This is my HTML:
<div class="baskitem_total"><span style="color:#06C;">Total amount: </span>€</div>
I've got several baskitem_price divs and now i need a little script in PHP or Javascript that will add up all the baskitem_price divs and display the answer in the baskitem_total div.
Hope you guys can help me.:confused: