Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
playground:playground [2009/01/22 14:45] gsmith28 |
playground:playground [2019/12/18 22:17] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOCACHE~~ | ||
====== PlayGround ====== | ====== PlayGround ====== | ||
- | |||
- | A PHP generated table:\\ | ||
- | |||
- | <php> | ||
- | $columns=5; | ||
- | echo ("testing:"); | ||
- | echo "<table class=\"inline\">\n"; | ||
- | |||
- | for($i = 0; $i < $columns; $i++){ | ||
- | for($j = 0; $j < 1; $j++){ | ||
- | echo ("<tr class=\"row".$i."\">\n<td class=\"col".$j." leftalign\">Item ".$i."</td>\n</tr>\n"); | ||
- | } | ||
- | } | ||
- | echo "</table>"; | ||
- | </php> | ||
- | |||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
- | | Row 2 Col 1 | some colspan (note the double pipe) || | ||
- | | Row 3 Col 1 | Row 2 Col 2 | Row 2 Col 3 | | ||