Jump to content

MS Word to MySQL


marruku

Recommended Posts

I'm trying to take data that was typed in MS Word and input it into MySQL. Right now I am using this to convert special chars and add slashes:

 

function text2mysql($text) {
    $text = htmlentities($text);
    $text = addslashes($text);
    return $text;
}

 

However, the text that should be inputted is still cut off by other special chars. I can't seem to find a way to input text with these other special chars.

 

Anyone else have this problem and fixed it? Thanks.

 

-Marc

Link to comment
https://forums.phpfreaks.com/topic/2950-ms-word-to-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.