I am trying to insert data into a MEDIUMTEXT field that contains " and I continue to get a MySQL error, so I have do this: \" but that breaks the HTML that I'm adding.
What can I do?
can you post some sample data?
meanwhile try doing this,
$data = mysql_escape_string($data);
$data = addslashes($data);//be careful if magic quotes are on
This is being done though PHPmyadmin. HEre's the error:
#1064 - 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 '(
entry =" ddfdfdfd "ok" adfsfdas"
)' at line 1
that won't help,
please post the code which you are using.
|All times are GMT. The time now is 04:49 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0