从数据库向URL添加值[关闭]

I have one page that I need to have different content on depending on the URL. What I need to do is grab the page title from the database and then use that in the URL as shown below. How would I do that?

Each page needs to have different content and each page needs to have a different URL, so in the end, the URL should be something like:

www.website.com/page.php?title=title-taken-from-database

In the case stated above, you would just use the GET superglobal (query string after ? in url):

 $page_title = $_GET['title'];

If you want 'prettier' URLs, you would want to use Rewrites. That way

http://www.website.com/some-page-title/

would actually show the content as if it was entered as

http://www.website.com/page.php?title=some-page-title