" target="_blank"> |
|
|
|
Metadata for Table: ".$table."
";
/* man bekommt Kommentare der einzelnen Tabellen; hier könnte man die Wiki-Texte auch noch drin verstecken
SELECT TABLE_NAME, TABLE_COMMENT
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'dna_workingversion' */
$result = mysqli_query($GLOBALS["___mysqli_ston"], "show full columns from ".$table);
if (mysqli_num_rows($result) > 0) {
echo '{| border="1" width="95%"
!width="28%" | Field
!width="12%" | Type
!width="6%" | Null
!width="6%" | Key
!width="20%" | Default
!Comment ';
while ($row = mysqli_fetch_object($result)) {
echo "|- |".$row->Field." |".$row->Type." |".$row->Null." |".$row->Key." |".$row->Default." |".$row->Comment." ";
}
echo '|}';
}
?>
|