I'm still not quite sure what you mean, but I assume that you want to be able to have one function for all tables that does those kinds of things? First of all, if you're inserting manually, try phpMyAdmin. If you want a simple interface, then use for loops. Like for view:
$result = // do query here
echo "<TABLE>\n";
while ($r = mysql_fetch_row($result)) {
echo "<TR>";
for ($i = 0; $i < sizeof($r); $i++)
echo "<TD>".$r[$i]."</TD>";
echo "</TR>";
}
echo "</TABLE>";
or something like that. I just wrote that, so it's untested, but we're talking about theory. So that would be adaptive displaying to any kind of a table. Hope SOME of this helps 😉