Encasing "\" In PHP With MySQL
Moderator: General Moderators
-
WanamakerStudios
- Forum Commoner
- Posts: 65
- Joined: Thu Nov 30, 2006 7:35 am
Encasing "\" In PHP With MySQL
Good Morning! I hope someone might be able to help me out with this. We receive a database feed from a third party company. In parts of their database, they have product codes that contain "\". Whenever I try to display or search on a product based on a product code that contains that character, my program quits. Is there a way to encase that "\" so I can search and display on that field?
You may want to take a look at mysql_real_escape_string()