Hi All
I store the names of places in a table and create a firendly URL from them as such:
Name: Quality Hotel
URL: quality-hotel
When a user clicks to view the details of the hotel, i use the URL to pull the record from the database. This works fine up until recent when a hotel name was as follows:
3* Östersund Race Hotel
The URL saved in my database actually comes out as this:
3*-Östersund-race-hotel
and the data is not being found when I try to call it in my database query.
What is the best way to convert any of these special characters to something that a URL can interpet?
Any advice would be greatly appreciated.
Thanks