SHOW:
|
|
- or go back to the newest paste.
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
5 | <title>Documento sin título</title> | |
6 | </head> | |
7 | <body> | |
8 | <?php | |
9 | echo '<table border=1>'; | |
10 | print '<tr><td> Tabla del 10 </td><td> Resultado </td></tr>'; | |
11 | - | for ( $i = 1 ; $i=< 10 ; $i++) { print '<tr><td> 10 * ' . $i . '</td><td> ' . 10*$i . '</td></tr>'; |
11 | + | for ( $i = 1 ; $i<= 10 ; $i++) { |
12 | print '<tr><td> 10 * ' . $i . '</td><td> ' . 10*$i . '</td></tr>'; | |
13 | } | |
14 | echo '</table>'; | |
15 | ?> | |
16 | </body> | |
17 | </html> |