diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-06 17:14:25 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2005-11-06 17:14:25 +0000 |
commit | 866c47ec603595e8fe67da5f0e5d162a70b1f7b4 (patch) | |
tree | ef2b85462576150f017ba6bd53ace13dc60dc510 /www-ssl/inc/funktion_db_list.php | |
parent | fbc8e11b91b0565ae5d23472fc4e5bfc7d879939 (diff) |
move files
git-svn-id: svn://svn.cccv.de/engel-system@20 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/inc/funktion_db_list.php')
-rwxr-xr-x | www-ssl/inc/funktion_db_list.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/www-ssl/inc/funktion_db_list.php b/www-ssl/inc/funktion_db_list.php new file mode 100755 index 00000000..894de5e5 --- /dev/null +++ b/www-ssl/inc/funktion_db_list.php @@ -0,0 +1,34 @@ +<?PHP + +function funktion_db_list($Table_Name) { + +include ("./inc/db.php"); + +$SQL = "SELECT * FROM `".$Table_Name."`"; +$Erg = mysql_query($SQL, $con); + +// anzahl zeilen +$Zeilen = mysql_num_rows($Erg); + +$Anzahl_Felder = mysql_num_fields($Erg); + +echo "<table border=1>"; + +echo "<tr>"; +for ($m = 0 ; $m < $Anzahl_Felder ; $m++) { + echo "<th>". mysql_field_name($Erg, $m). "</th>"; + } +echo "</tr>"; + +for ($n = 0 ; $n < $Zeilen ; $n++) { + echo "<tr>"; + for ($m = 0 ; $m < $Anzahl_Felder ; $m++) { + echo "<td>".mysql_result($Erg, $n, $m). "</td>"; + } + echo "</tr>"; +} + +echo "</table>"; +} + +?> |