Okay, I think I already know the answer to this but I thought I'd seek the opinion of others first.
I have a website which dynamically gets data from various tables within a page. I have one page which focuses on three main pieces of data in the database, the unique id, a unique name related to the id and the names of people involved in that item.
The thing I'm wondering is should I just have the unique id in the url with the php code to get the data and the info in the title and an H1 tag i.e.
URL: http://www.thewebsiteurl.com/thepage/uniqueid=1234/
Title & H1 tag: "Joe Bloggs, Jane Bloggs & John Doe in Unique Name Related to ID"
OR...
Use htaccess to make the following
URL: http://www.thewebsiteurl.com/thepage/uniqueid=1234/Joe_Bloggs-Jane_Bloggs-&-John_Doe-Unique_Name_Related_to_ID.php
Title & H1 tag: "Joe Bloggs, Jane Bloggs & John Doe in Unique Name Related to ID"
The first option is easier and sites such as IMDB use this sort of method. The second option involves a bit more PHP work but contains all the data in the URL.
Both seem to have their pros and cons but will the second option dramatically improve search engine listings or would the first option which still has all of the important information in the title and H1 tag be enough?
Thanks in advance.