Deviant Logo

How to save data directly to database after reading from a doc file

post details top
Jul 16th, 2010
post details top


Hello,

i am using PHP as a programming language and Mysql as database.

My task is to read the doc file at the time of uploading and read the contents and save them to database.

I am able to upload the file and read the data and get all the contents in a variable but i am not able to save that data to  the databse because of unwanted text or special characters added to the string while reading it, because of formatting that a world file have.

So if any one help me out how to store that data to database or how to maintain the formatting of word file.

i had tried no of things and expected some good options so that i can solve that problem.

Please help me.

your interest is highly appriciated.

tons of thanks in advance.

Hello,

i am using PHP as a programming language and Mysql as database.

My task is to read the doc file at the time of uploading and read the contents and save them to database.

I am able to upload the file and read the data and get all the contents in a variable but i am not able to save that data to  the databse because of unwanted text or special characters added to the string while reading it, because of formatting that a world file have.

So if any one help me out how to store that data to database or how to maintain the formatting of word file.

i had tried no of things and expected some good options so that i can solve that problem.

Please help me.

your interest is highly appriciated.

tons of thanks in advance.

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Leave a Reply

Search

  • Partner links