function viewArray($arr) { echo ''; foreach ($arr as $key1 => $elem1) { echo ''; echo ''; if (is_array($elem1)) { extArray($elem1); } else { echo ''; } echo ''; } echo '
'.$key1.' '.$elem1.' 
'; } function extArray($arr) { echo ''; echo ''; foreach ($arr as $key => $elem) { echo ''; echo ''; if (is_array($elem)) { extArray($elem); } else { echo ''; } echo ''; } echo '
'.$key.' '.htmlspecialchars($elem).' 
'; echo ''; } function listtables($link){ global $s,$n; $dbs = mysql_list_dbs($link); $db_list = mysql_list_dbs($link); while ($row = mysql_fetch_object($db_list)) { if (preg_match ("/reenie_/i", $row->Database )){ echo $row->Database . $n; $tables = mysql_list_tables($row->Database); if (!$tables) { print "DB Error, could not list tables$n"; print 'MySQL Error: ' . mysql_error(); exit; } while ($row = mysql_fetch_row($tables)) { echo $t, $row[0], $n; } } } }