Zitat von nummi
Ankündigung
Einklappen
Keine Ankündigung bisher.
Erstellung eines kleinen Schachbrettes
Einklappen
Neue Werbung 2019
Einklappen
X
-
also gut ^^ bin halt noch grün hinter den Ohren *zugeb* und das mit dem Schachbrett is wahrscheinlich im moment noch zu hoch *g*
aber ich habs gestern mal ausprobiert und bin zu einer lösung gekommen:
Code:<html> <body> <table border = 1> <?PHP $x = 'x'; $y = 'y'; $xkor = 1; $ykor = 1; $plusx = 1; $plusy = 1; $stop = 100; while ($xkor <= $stop){ echo '<tr>'; $plusx = $xkor++; while ($ykor <= $stop){ $plusy = $ykor++; echo '<td>' . $x . $plusx . $y . $plusy . '</td>'; } $ykor = 1; echo '</tr>'; } ?> </table> </body> </html>
Kommentar
Kommentar