Syntax Help
Posted: Wed May 05, 2010 2:01 pm
I have a functional open source php proposal software that we moved from a PHP 4.3.8 - Apache 2.0.50 - MySQL 4.0.20 box to a PHP 5.2.6.6 - Apache 2.2 - MySQL 5.051b box.
After the move we have started to notice that data is being returned with \ character before any ' or '' (single or double quotes). So like the row data of Joe O'brien now says Joe O\'Brien. Or if it's a measurement like 3 1/8" it now says 3 1/8\" when the data is pulled from the SQL database.
When I look at the actual data/text that is in the SQL table there are no \'s in the data. It reads properly.
Does anyone have a place to start looking for me? I've scoured the code but i'm not a php master at this point and I feel that this is something in the code. Possibly because it was written for an older version of PHP. The application seems to work just fine otherwise on the new system. It's just this \ that's showing up in the pages.
Any input would be much appreciated.
Thank you!
After the move we have started to notice that data is being returned with \ character before any ' or '' (single or double quotes). So like the row data of Joe O'brien now says Joe O\'Brien. Or if it's a measurement like 3 1/8" it now says 3 1/8\" when the data is pulled from the SQL database.
When I look at the actual data/text that is in the SQL table there are no \'s in the data. It reads properly.
Does anyone have a place to start looking for me? I've scoured the code but i'm not a php master at this point and I feel that this is something in the code. Possibly because it was written for an older version of PHP. The application seems to work just fine otherwise on the new system. It's just this \ that's showing up in the pages.
Any input would be much appreciated.
Thank you!