"; echo "TABLE { border-collapse:collapse;border:1px solid gray; } TD {border:1px solid gray}"; echo ""; $results = mysqli_query($base, "SHOW TABLES"); if($results == false) die("Empty database"); $tables = array(); while($arr = mysqli_fetch_array($results)) { array_push($tables, $arr['0']); } echo "

Database structure : ".DB_NAME."

"; foreach($tables as $table) { $results = mysqli_query($base, "DESCRIBE $table"); echo "

TABLE $table

\n"; echo ""; echo "\n"; while($arr = mysqli_fetch_array($results)) { echo ""; } mysql_data_seek($results, 0); echo "\n"; echo "\n"; while($arr = mysqli_fetch_array($results)) { echo ""; } mysql_data_seek($results, 0); echo "\n"; echo "\n"; while($arr = mysqli_fetch_array($results)) { echo ""; } mysqli_data_seek($results, 0); echo "\n"; echo "\n"; while($arr = mysqli_fetch_array($results)) { echo ""; } echo "\n"; echo "
Name ".$arr['0']."
Type ".$arr['1']."
May be NULL ".$arr['2']."
PRIMARY KEY ".$arr['3']."
"; } echo "
Scriptol.com"; ?>