MySQL query is used as page title
Posted: Wed Jan 11, 2012 4:43 pm
Many sites, such as online dictionaries, will often generate pages with the name of your search (or the nearest valid word) in the address bar.
For example, if I search for "elephant" on dictionary.reference.com then I am taken to a page called dictionary.reference.com/browse/elephant which contains all the information about the word elephant. If I bookmark that page I can head back to the elephant entry any time I like.
My question is how do I use MySQL search results as the titles of pages that I generate?
Many thanks!
For example, if I search for "elephant" on dictionary.reference.com then I am taken to a page called dictionary.reference.com/browse/elephant which contains all the information about the word elephant. If I bookmark that page I can head back to the elephant entry any time I like.
My question is how do I use MySQL search results as the titles of pages that I generate?
Many thanks!