-1

I have a question about sending big documents to the database. When i insert my edited word doc with colors on some words into tinyMCE the text display properly. But sending to the database fails because of commas in the text i guess. Is there a simple way to fix this?

Marvinoo_
  • 89
  • 1
  • 2
  • 9
  • 1
    I'd be willing to bet it's because you don't escape your inputs properly, or use prepared statements. But with no code, who knows. – Jonnix Sep 10 '16 at 19:53

2 Answers2

1
 $yourtext = $conn->real_escape_string($yourtext); //$conn is the mysql connection

if this succeed then it was a escaping problem

Accountant م
  • 6,975
  • 3
  • 41
  • 61
0

You can use real_escape_string function,and also you can use a trick so that firstly save all contents of tinyMCE into a temporary file then you can read or insert the file into your database.

Ashouri
  • 906
  • 4
  • 19