hello guys
I'm coding a site that will use mod rewrite to send the users to the real php generated page ( say search.php?id=123456) but I'll use mod_rewrite to make the url look like /somecategory/123456-TheNameOfThatThing.html
now the database I'm using happens to have any kind of crap in TheNameOfThatThing part including " * ' ] etc
is there a php function that I can use o "make the string clean"?
remember I don't car if the string is fucked and some chars are removed (I actually want to remove them), I won't use it to run the query, I'll use just the number
any idea?
or the only way to go is the good old str_replace used for all those characters?
I'm coding a site that will use mod rewrite to send the users to the real php generated page ( say search.php?id=123456) but I'll use mod_rewrite to make the url look like /somecategory/123456-TheNameOfThatThing.html
now the database I'm using happens to have any kind of crap in TheNameOfThatThing part including " * ' ] etc
is there a php function that I can use o "make the string clean"?
remember I don't car if the string is fucked and some chars are removed (I actually want to remove them), I won't use it to run the query, I'll use just the number
any idea?
or the only way to go is the good old str_replace used for all those characters?