I'm using the below to escape data going into the database. When I check the database field it shows the string prepend with a backslash which is correct right?? So now how do I display the data when I query it? For some reason when I echo the data on the page the string displays only up to the point where the escaped character begins. Say the database field shows "BOBBY AND \"TOMMY" when I print it shows only "BOBBY". Below includes how I'm printing the data.
foreach ($_POST as $key => $value) {
$_POST[$key] = mysql_real_escape_string($value);
}
<td>
Description:<br>
<input type="text" onclick="this.select();" value="<?php echo $row['description']; ?>" name="description" class="textfield" size="25">
</td>