So maybe im just dumb or tired right now and am missing the obvious or whatever but why is this mysql insert cutting the string off at the double quotes (“)>
the contents of the posted field is: It’s my text “quote”
$gpCaption = mysql_real_escape_string ($_POST['gpCaption']);
$sql = "INSERT INTO galleriesphotos SET gpID = '$gpID', gID = '$gID', gpCaption = '".$gpCaption."'";
$rows = $db->query($sql);
}
Only this gets inserted into mysql: It\’s my text \
what happened to the rest of it?
Are you sure it is cutting?
if $_POST[‘gpCaption’] is =
This escaping result of this is:
And when I insert it in a table, I can see it without a cutoff:
Here is the sql fiddle test:
http://sqlfiddle.com/#!2/e5059/1