How are you displaying the first table? For each row, you should be generating a hyperlink to a new script which which will show the data from the other tables based on which hyperlink the user selected. Something like this:
while(odbc_fetch_row($result)){
$name=odbc_result($result,'name');
$id=odbc_result($result,'id');
echo '<tr><td>';
echo '<a href="newscript.php?id='.$id.'">'.$name.'</a>';
echo '</td></tr>;
}
This is using ODBC functions (which I'm more familiar with), but it is virtually the same using MySQL functions. The example assumes the result set has columns named name and id. I left out the table HTML.
In newscript.php you can then use the value of ID to either get the data you need.