Here's the new code.. Tested and ready to go... All it needs is just to make the design a little better... It's a little ugly now...
<head>
</head>
<body>
<?php
mysql_connect("localhost", "php", "");
$DBname = 'my_database';
$result = mysql_list_tables($DBname);
$i = 0;
while($i < mysql_num_rows($result)) {
$names[$i] = mysql_tablename($result, $i);
$nresult = mysql_query("SELECT * from $names[$i]");
$numbs[$i] = mysql_num_rows($nresult);
$i++;
}
echo "<table width=100 border=1>"; // you deside width and border
for($a = 0; $a < $i; $a += 2)
{
$b = $a + 1;
echo "<tr><td>$names[$a]</td>";
echo "<td>$names[$b]</td></tr>";
echo "<tr><td>$numbs[$a]</td>";
echo "<td>$numbs[$b]</td></tr>";
}
echo "</table>";
?>
Andreas Bernhardsen
Graficonn