title: Inserting TEXT in mysql database showing error
body: <p>I have come to a weird problem. I have a text column in my table. I am inserting text taken from a textarea of html form into mysql database.</p>
  
  <pre><code>$sql="INSERT INTO mytable ( `username`, `firstname`, `lastname`,`about`,`email`) VALUES ('$username', '$fname', '$lname','$about','$email');";      
  </code></pre>
  
  <p>about here is TEXT type column<br>
  And this is my textarea</p>
  
  <pre><code>&lt;textarea id="oabout" name="about" rows="10" placeholder="Aboutyourself"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>If i insert the following text then the insertion works fine</p>
  
  <pre><code>I am a student
  </code></pre>
  
  <p>But if i try to insert the following text i am getting error</p>
  
  <pre><code>I'm a student
  </code></pre>
  
  <p>The error is shown as</p>
  
  <blockquote>
    <p>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 'm a student','abc@gmail.com')' at line 1</p>
  </blockquote>
  
  <p>How can i make the change so that the second text is also inserted into the database?</p>