I am trying to insert email headers read from impap in to a mysql text field. Problem is the headers are full of slashes, commas, quotes, line feeds. mysql_escape doesnt come near it. The different mail server responses can lead to quite different headers. Do i have to do some weird voodoo before storage?
Share
mysql_real_escape_string() should really be all you need:
are you working with multiple connections? If you are, be sure to add
$link_identifierto the call, as defined in the manual.