Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
playground:playground [2009/01/22 15:13]
gsmith28
playground:playground [2019/12/18 22:17] (current)
Line 1: Line 1:
-~~NOCACHE~~ 
 ====== PlayGround ====== ====== PlayGround ======
- 
-A PHP generated table:\\ 
- 
-<php> 
-$rows=5; 
-$columns=2; 
- 
-echo "​\n<​table class=\"​inline\">​\n";​ 
- 
-for($i = 0; $i < $rows; $i++){ 
-  echo ("<​tr class=\"​row"​.$i.$j."​\">​\n"​);​ 
-  if($i == 0){ 
-    for($j = 0; $j < $columns; $j++){ 
-      echo ("<​th class=\"​col"​.$j."​ leftalign\">​Item "​.$i.$j."</​th>​\n"​); ​ 
-    } 
-  }else{ 
-    for($j = 0; $j < $columns; $j++){ 
-      echo ("<​td class=\"​col"​.$j."​ leftalign\">​Item "​.$i.$j."</​td>​\n"​); ​ 
-    } 
-  } 
-  echo ("</​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        | 
  

Personal Tools