I assume in the second database that there is a unique key that identifies it to a unique field in the first db. when you display your results display them as hyperlinks and pass the key identifier as a variable as part of the href.
then when you after you click and go to the page where you want the additional info displayed do a query like
select * from 2ndtable where KEYID='$varname'
hope this helps
Ace21