Change Master Detail Grid Layout e.g. side by side
<table><tr><td> <?php...GRID 1 (master)...?><td><?php...GRID 2 (detail)...?></td><tr></table>Obviously, there's more elegant way to do this without using table if you are familiar with CSS. Nevertheless, table is the simplest and gets job done.