PHP Schleife: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
K (typo)
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<source lang="php-brief">
<?php
echo "<h3>SESSION</h3>";
echo "<h3>SESSION</h3>";
echo "<table border=1 width=50%>";
echo "<table border=1 width=50%>";
Zeile 9: Zeile 11:
}
}
echo "</table>";
echo "</table>";
?>
</source>
[[Category:Tips und Tricks]]

Aktuelle Version vom 13. März 2007, 22:36 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>";
?>