Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $counter = 1;
- $prices = array(9.99,4.99,6.99);
- $shirtprice = $prices[0];
- echo "<table width='600' cellpadding='5' cellspacing='5' border='1'>";
- echo "<tr><td>Quantity</td><td>Price</td></tr>";
- while ( $counter<= 10) {
- echo "<tr><td>$counter</td><td>".number_format($shirtprice*$counter,2)."</td></tr>";
- $counter++;
- }
- echo "</table>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement