Forum Moderators: coopster
How do you, when querying the data, replace an existing & with & for proper output for XML?
Cheers, Chris
I check for valid markup first and change it to a regular & then convert it back to the valid markup helps with consistency
$BusinessName = str_replace('&', '&', $BusinessName);$BusinessName = str_replace('&', '&', $BusinessName);
Regards, Brandon
Where you place that in regards to a query?
bkeep is talking about after you have run the query and are processing the result set. You run the code on your string variable that you fetched from your database result set.