title: Mysql Won't update the row
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8200174/whats-wrong-with-this-query-mysql">Whats wrong with this query mysql?</a>  </p>
  </blockquote>
  
  
  
  <p>I am using mysql and php to update a record. Here is my code:</p>
  
  <pre><code>$n=mysql_query("UPDATE chondas SET model='$model1', yearstart=$yearstart1,
                  yearstop=$yearstop1, desc='$desc1', hp='$hp1', 
                  engine='$engine1',trim='$trim1', weight='$weight1' WHERE id=$id1");
  </code></pre>
  
  <p>In the following code if I take out <code>desc='$desc1'</code> everything works perfectly. What would cause this error?</p>
  
  <p>When i tested the following code in phpmyadmin I got this error:</p>
  
  <blockquote>
    <p>#1064 - 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 'desc='text of the textarea' at line 1.</p>
  </blockquote>