I have been building a system with PHP & MySQL. Up until now, everything has been fine, but now when I save data from a text field, it has started adding the escape characters. For example, trying to save the string
It's good
saves as
It\'s good
The insert query I am using is
$query = "INSERT INTO jobs(customerId,
 jobDateReceived,
 jobReceivedBy,
 jobPONo,
 jobCompletionDate,
 jobPrice,
 jobIncExVat,
 jobPriceEstimate,
 jobZeroPrice,
 jobDescription,
 jobEngraving,
 jobEngraveComplete,
 jobLaser,
 jobLaserComplete,
 jobWood,
 jobWoodComplete,
 jobQualityControl)
 VALUES('".$_SESSION['customerId']."', '"
 .$_POST['recDateField']."', '"
 .$_POST['recByField']."', '"
 .$_POST['purchOrderField']."', '"
 .$_POST['completionDateField']."', '"
 .$_POST['priceField']."', '"
 .$_POST['vatRadios']."', '"
 .$estimateYN."', '"
 .$zeroPriceYN."', '"
 .mysqli_real_escape_string($link, $_POST['descriptionField'])."', '"
 .$engravingYN."', 'N', '"
 .$laserYN."', 'N', '"
 .$woodYN."', 'N', 'I')";
Can anyone help as to why this may have stopped working?
 
    