I have been trying to make a WYSIWYG editor that saves the HTML content into database.
The problem I run into is when I change fonts and add colors and everything, and try to insert/update the database I get the following error:
Quote
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal;' at line 2
which basically means it can't parse ' which seems reasonable. I thought about replacing ' with \' in PHP but it didn't work. Do you guys know how I could fix this?
Any help is appreciated.
Thanks


Sign In
Create Account


Back to top









