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
Next revision Both sides next revision
prog1_04 [2018-09-17 09:28]
Daniel Viström
prog1_04 [2019-09-09 09:19]
Daniel Viström
Line 5: Line 5:
 <code php> <code php>
 <?php <?php
-include('head.php');+include 'head.php';
 $i=0; $i=0;
 while ($i < 10) { while ($i < 10) {
Line 11: Line 11:
   $i++;   $i++;
 } }
-include('foot.php');+include 'foot.php';
 </code> </code>
  
Line 46: Line 46:
 Tips är att göra eller skaffa sex bilder som man döper till 1.png, 2.png osv. Du kan ladda ner bilder {{::tarningar.zip|här}}. \\ Sen kan man ha nytta av funktionen nedan Tips är att göra eller skaffa sex bilder som man döper till 1.png, 2.png osv. Du kan ladda ner bilder {{::tarningar.zip|här}}. \\ Sen kan man ha nytta av funktionen nedan
 <code php> <code php>
-  echo mt_rand(); // Slumpar ett tal mellan 0 and mt_getrandmax() +  mt_rand(); // Slumpar ett tal mellan 0 and mt_getrandmax() 
-  echo mt_rand(5, 15); // Slumpar ett tal mellan 5 och 15 +  mt_rand(5, 15); // Slumpar ett tal mellan 5 och 15 
 </code> </code>