Pretty simple actually. All you need to do is set up a switch or an if statement looking for values passed through the browser.
if ($GET["action"] == "foo") {
$table_data = '<table> blah blah blah....';
}
else if ($GET["action"] == "bar") {
$table_data = '<table> blah blah blah....';
}
then just add the action to your links:
<a href="mypage.php?action=foo">
The only problem with this is that the page will have to be reloaded every time a link is clicked. JavaScript might be better for this, but then you have browser issues to deal with.