| The following rows were created with a loop. |
| This is loop number 1 |
| This is loop number 2 |
| This is loop number 3 |
| This is loop number 4 |
| This is loop number 5 |
| This is loop number 6 |
| This is loop number 7 |
| This is loop number 8 |
| This is loop number 9 |
| This is loop number 10 |
| This is loop number 11 |
| This is loop number 12 |
| This is loop number 13 |
| This is loop number 14 |
| This is loop number 15 |
| This is loop number 16 |
| This is loop number 17 |
| This is loop number 18 |
| This is loop number 19 |
| This is loop number 20 |
| This is loop number 21 |
| This is loop number 22 |
| This is loop number 23 |
| This is loop number 24 |
| This is loop number 25 |
| This is loop number 26 |
| This is loop number 27 |
| This is loop number 28 |
| This is loop number 29 |
| This is loop number 30 |
| This is loop number 31 |
| This is loop number 32 |
| This is loop number 33 |
| This is loop number 34 |
| This is loop number 35 |
| This is loop number 36 |
| This is loop number 37 |
| This is loop number 38 |
| This is loop number 39 |
| This is loop number 40 |
| This is loop number 41 |
| This is loop number 42 |
| This is loop number 43 |
| This is loop number 44 |
| This is loop number 45 |
| This is loop number 46 |
| This is loop number 47 |
| This is loop number 48 |
| This is loop number 49 |
| This is loop number 50 |
| This is loop number 51 |
| This is loop number 52 |
| This is loop number 53 |
| This is loop number 54 |
| This is loop number 55 |
| This is loop number 56 |
| This is loop number 57 |
| This is loop number 58 |
| This is loop number 59 |
| This is loop number 60 |
| This is loop number 61 |
| This is loop number 62 |
| This is loop number 63 |
| This is loop number 64 |
| This is loop number 65 |
| This is loop number 66 |
| This is loop number 67 |
| This is loop number 68 |
| This is loop number 69 |
| This is loop number 70 |
| This is loop number 71 |
| This is loop number 72 |
| This is loop number 73 |
| This is loop number 74 |
| This is loop number 75 |
| This is loop number 76 |
| This is loop number 77 |
| This is loop number 78 |
| This is loop number 79 |
| This is loop number 80 |
| This is loop number 81 |
| This is loop number 82 |
| This is loop number 83 |
| This is loop number 84 |
| This is loop number 85 |
| This is loop number 86 |
| This is loop number 87 |
| This is loop number 88 |
| This is loop number 89 |
| This is loop number 90 |
| This is loop number 91 |
| This is loop number 92 |
| This is loop number 93 |
| This is loop number 94 |
| This is loop number 95 |
| This is loop number 96 |
| This is loop number 97 |
| This is loop number 98 |
| This is loop number 99 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Assignment040</title>
<style type="text/css">
table
{
margin:auto;
}
th
{
background-color:#FF9900;
border:1px solid black;
}
td
{
text-align:center;
border:1px solid black;
}
</style>
</head>
<body>
<table>
<tr><th>The following rows were created with a loop.</th></tr>
<?php
//set the counter variable, counter condition, and counter increment.
//counter variable: start the counter variable at zero
//condition: run the code (loop) while counter variable is less than 100
//counter increment: add one to the counter everytime you loop
for($counter=1 ; $counter <100; $counter=$counter+1)
{
echo "<tr><td>";
echo "This is loop number ".$counter;
echo "</td></tr>";
}
print show_source("Assignment040.php");
?>
</table>
</body>
</html>
1