bccamp
Technical User
- Jan 20, 2005
- 69
I'm trying to pass a variable with the '&' sign through to a web page to be searched in a db. I don't know what to use to make php understand that it's not two different variables.
ex.
some_com.php?cat=a&b>a&b
Php reads it, of course, as cat=a and another variable b.
I want to use cat to search the mysql for the match to "a&b".
How do I join them or make php see it as one unit or list it on the initial page where it's not looked at as 2 variables?
It wouldn't matter, but my DB that is being searched has more than a few '&' in the titles. Any help would be appreciated.
ex.
some_com.php?cat=a&b>a&b
Php reads it, of course, as cat=a and another variable b.
I want to use cat to search the mysql for the match to "a&b".
How do I join them or make php see it as one unit or list it on the initial page where it's not looked at as 2 variables?
It wouldn't matter, but my DB that is being searched has more than a few '&' in the titles. Any help would be appreciated.