Okay, what I am doing here is converting my existing aspx pages to php pages. The reason for my switch are unexplanable runtime errors. I will tell you how I have it set up, so that you will know what to do in php (for which I have no knowledge in).
I have a page containing two frames side-by-side. The left side has links, and the right side will connect to the database and display results.
The left sides' hyperlink properties contains variables (eg.?link=Alkanet), which the right side receives.