I get the following error when i try to input a large chunk of text into a text box that updates a table in my database:
it works fine with a few sentences but i want to update the small sentences into a large paragraph.PHP Code:Error in submission: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 's five-year MCS, Hunt five-year soft-sided fleet, and Hunt/Aver
am i doing something wrong???
this is what the table settings are:
specification longtext Yes NULL
and its basically this code:
PHP Code:<textarea name="specification" cols="71" rows="6"><?php echo $specification ?></textarea>
and its the specification by the way.PHP Code:if (isset($submit)) {
// UPDATE QUERY CODE WHEN SUBMIT IS ENTERED
$insert = "UPDATE car SET
make='$make', model='$model', price='$price', specification='$specification', sold='$sold' WHERE ID='$ID'";
if (@mysql_query($insert))
{
?>
<script language="javascript">
document.location.replace('edited.php');
</script>
<?
}
else {
echo('Error in submission:' . mysql_error() . "<br /><br />" . $sql);
}
}
?>
thanks in advance for anyone willing to help me out.
