Page 1 of 1

Encasing "\" In PHP With MySQL

Posted: Thu Nov 30, 2006 7:39 am
by WanamakerStudios
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?

Posted: Thu Nov 30, 2006 9:36 am
by JayBird
You may want to take a look at mysql_real_escape_string()