Thread: Funky URL's
01-10-04, 14:54 #1Registered User
- Join Date
- Oct 2003
Unanswered: Funky URL's
Each page of my site is dynamically generated via my database, and some of the URL's to product names contain special characters, like trademark symbols...etc.
The name in the URL is then queried in my database, and I've been having luck using odd URL's like so:
Notice that I just had to use an underscore character in the name, so that MySQL will treat it as a wildcard character and return the proper results.
I ran into one problem, which is in regard to double quotes.
I have a product name like so:
/SuperCoolProduct Black "large"
I've tried escaping the double quotes using many different techniques, but to no avail.
I was assuming I'd just be able to utilize the underscores like I did with the rest of the product names, but that is not the case... and, I've tried many of the following combinations:
Any suggestions would be greatly appreciated !!
01-15-04, 23:54 #2Registered User
- Join Date
- Jan 2004
preg_replace. Just use preg_replace to find any funky characters and remove them. Or just replace them with something goofy like | or the $.