Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dvprog_05 [2017-09-08 14:36]
Daniel Viström
dvprog_05 [2019-09-09 09:18] (current)
Daniel Viström
Line 14: Line 14:
 <code php> <code php>
 <?php <?php
-include('​head.php'​);+include '​head.php';​
  
 $i = 1;                                // Startvärde $i = 1;                                // Startvärde
Line 22: Line 22:
 } }
  
-include('​foot.php'​);+include '​foot.php';​
 ?> ?>
 </​code>​ </​code>​
Line 53: Line 53:
 <code php> <code php>
 <?php <?php
-include('​head.php'​);+include '​head.php';​
  
 $summa = 0;               // Startvärde för summan $summa = 0;               // Startvärde för summan
Line 63: Line 63:
 echo '<​br>​Summan av var tredje tal under 100 blir: ' . $summa . '<​br>';​ echo '<​br>​Summan av var tredje tal under 100 blir: ' . $summa . '<​br>';​
  
-include('​foot.php'​);+include '​foot.php';​
 ?> ?>
 </​code>​ </​code>​
Line 72: Line 72:
 <code php> <code php>
 <?php <?php
-include('​head.php'​);+include '​head.php';​
  
 $summa = 0;                          // Startvärde $summa = 0;                          // Startvärde
Line 86: Line 86:
 echo '​Summan är: ' . $summa . '<​br>';​ echo '​Summan är: ' . $summa . '<​br>';​
  
-include('​foot.php'​);+include '​foot.php';​
 ?> ?>
 </​code>​ </​code>​