How to update the current page to show new content?
I am not sure what functionality you are trying to build and if adding PHP code inside a Drupal node is the right way to do it. But assuming that is what you would like to do, here are the steps to achieve what you want:


Create a Drupal node (say the nid of it is NID) and add the following PHP code inside it

$table_name = arg(2); // This grabs the 3rd argument of the page menu path (note: the 1st argument is indexed 0)
print $table_name; // Replace this with PHP code to fetch and print data in the table represented by $table_name

When you are making table1, table2 etc links make sure the URL that they point to is node/NID/&lt;table_name&gt; where &lt;table_name&gt; is table1, table2 respectively.