Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
06-05-2011, 06:56 PM #1
- Join Date
- Mar 2011
- Thanked 0 Times in 0 Posts
How do i keep "&" from being converted to "&" ?
In a MySQL database i have the following entry: "Fruits & Vegetables"
$z = rawurlencode(json_encode($reqVar)); echo $z;
var response = decodeURIComponent(transport.responseText) var respObj = response.evalJSON(true);
06-16-2011, 06:28 PM #2
i think this may be a SQL question more than an ajax... but none-the-less... (not sure of direct answer as I have no xp w/ php) but the term you are looking for is passing a literal value... so you want the & to display literally... see a similar thread I posted as I was having an issue with needing to display literally \D in my C# code... each language has it's own "method" for incoperating this... make sure you keep this in mind when assembling your strings