esercizi in php
This commit is contained in:
53
php_1_4.php
Normal file
53
php_1_4.php
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
<?php
|
||||
|
||||
include ('header.html');
|
||||
|
||||
///////////////////////////
|
||||
echo<<<_css
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
_css;
|
||||
echo "\n";
|
||||
///////////////////////////
|
||||
|
||||
echo "<table>";
|
||||
|
||||
$value = 0;
|
||||
|
||||
for ($i=1;$i<=5;$i++){
|
||||
|
||||
echo "<tr>";
|
||||
for ($y=1;$y<=4;$y++){
|
||||
|
||||
echo "<td>";
|
||||
|
||||
echo ++$value;
|
||||
|
||||
|
||||
echo"</td>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
||||
|
||||
|
||||
include ('footer.html');
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user