you can print out the contents of all f the columns except the last, and then include a hyperlink similar to:
print("<a href=\"popupwin.html?rowid=" . $row["id"] . "\">view</a>");
where the popup window will access the database, and pull out the contents of the last column in the row with the id 'rowid'. I think this makes sense!
basically, the code for the popup win will look like:
$query = "SELECT last_column FROM table_name WHERE id_field = " . $_GET["rowid"];
then print out the results of the query.