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?
$sql? What happens if you change the structure to this:"INSERT INTO galleriesphotos SET gpID = '$gpID', gID = '$gID', gpCaption = '{$gpCaption}'";What happens if you put in a debug breakpoint and look at the value of $gpCaption? (or var_dump()?)