Undefined
By: Guest | Date: Sep 19 2008 11:12 | Format: PHP | Expires: never | Size: 862 B | Hits: 1273
- <html>
- <head>
- <title>Opdracht 2</title>
- </head>
- <body>
- <TABLE BORDER="1">
- <TR> <TH>Product</TH> <TH>Aantal</TH> <TH>Prijs per stuk</TH> <TH>Prijs per orderregel</TH></TR>
- <?php
- $ordernr = 521;
- { echo ( "<b>Ordernr:</b> ".$ordernr."<br><br>"); }
- for($i=0; $i<=3; $i++)
- {
- $prijsper = $aantal[$i] * $prijsperstuk[$i];
- echo ("<TR> <TD>" .$product[$i]. "</TD> <TD>" .$aantal[$i]. "</TD> <TD>" .$prijsperstuk[$i]. "</TD> <TD>" .$prijsper. "</TD></TR>n");
- }
- ?>
- </TABLE><br>
- <?php
- $totaal = 325.95;
- $metbtw = $totaal * 1.06;
- { echo ("<b>Totaal:</b> €".$totaal." <i>(excl btw)</i>, €".$metbtw." <i>(incl btw)</i>n"); }
- ?>
- </body>
- </html>
Latest pastes
6 hours ago
2 days ago
3 days ago
6 days ago
7 days ago