Word and Mysql formatting

Asked

Viewed 375 times

3

Colleagues, how would you get a Word proposal to be registered within Mysql and edited? I tried using the editors wysiwyg to put and paste, but Word HTML, after saved, Mysql does not recognize.

Solved. I had put the code as follows:

addslashes(htmlentities($proposta)); 

I just left:

addslashes() 

since the editor wysiwyg already creates HTML. I am using tinymce.

  • Explain "Mysql does not recognize". Exactly what happens?

  • I have a word file and a wysiwyg editor. When I take the content of the word file and put it inside the editor and click on save, it gives registration error. I already put addslashes(htmlentities($proposal)); but it doesn’t work. I gave a print on the screen and when I play directly in the database, also occurs the error. He says he has a syntax error... but I put the code correctly: Insert into table values(null,'$proposal'); what intrigues me is that if I put a normal text, it records...

  • I did... I removed the htmlentities() and it worked... thank you!

  • @Mark.It would be nice if you answered your own question (you can), including a solution to the doubt, but not just "withdrew the htmlentities()". Try to expose in a way that can help other people with the same problem.

  • Okay, Gustavox. You’re right. I’ll do it.

  • @Jose.Marcos The correct way to do this is to answer your own question, using the answer box at the bottom of the page. Here we do not put the answer in the place intended the question. The intention was good, but does right there, to earn +1. :-)

  • So, hey, ask still this as open....

  • Ready my dear Sneeps. Solved!

Show 3 more comments

1 answer

2


Solved. I had put the code as follows:

addslashes(htmlentities($proposal)); I just left:

addslashes() since the wysiwyg editor already creates HTML. I am using tinymce.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.