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?
Asked
Active
Viewed 40 times
2 Answers
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
-
that was simple and stupid of me i didn't try that! Thank you very much!! :) – Marvinoo_ Sep 10 '16 at 20:19
-
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