PHP Schleife: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
K (highlighting) |
||
Zeile 1: | Zeile 1: | ||
< | <source lang="php"> | ||
<? | <?php | ||
echo "<h3>SESSION</h3>"; | echo "<h3>SESSION</h3>"; | ||
echo "<table border=1 width=50%>"; | echo "<table border=1 width=50%>"; | ||
Zeile 12: | Zeile 12: | ||
echo "</table>"; | echo "</table>"; | ||
?> | ?> | ||
</ | </source> | ||
[[Category:Tips und Tricks]] | [[Category:Tips und Tricks]] |
Version vom 13. März 2007, 21:07 Uhr
<?php
echo "<h3>SESSION</h3>";
echo "<table border=1 width=50%>";
echo "<tr bgcolor=\"#3399FF\">";
echo "<td><b><font color=\"#FFFFFF\">Variable Name</font></b></td>";
echo "<td><b><font color=\"#FFFFFF\">Value</font></b></td></tr>";
while(list($key, $val) = each($_SESSION))
{
echo "<tr><td>$key</td><td><b>$val</b></td></tr>";
}
echo "</table>";
?>