esercizi in php

This commit is contained in:
2014-10-25 15:24:01 +02:00
parent 8e3c635fd9
commit c318b09580
10 changed files with 448 additions and 0 deletions

50
php_1_2.php Normal file
View File

@@ -0,0 +1,50 @@
<?php
include ('header.html');
echo<<<_css
<style>
table,td {
border:1px solid black;
}
</style>
_css;
$counter_x;
$counter_y;
echo "<table>";
for ($counter_x = 1 ;$counter_x <= 10; $counter_x++)
{
echo '<tr>';
for ($counter_y = 1 ;$counter_y <= 10; $counter_y++)
{
echo '<td>';
echo $counter_x * $counter_y;
echo '</td>';
}
echo '</tr>';
}
echo "</table>";
include ('footer.html');
?>