title: PHP Insert into MySQL table text with special characters?
body: <p>I have very strange problem.</p>
  
  <p>I have an HTML post from which is sending data to MySQL database.
  Here is my HTML from:</p>
  
  <pre><code>&lt;form action="update_video_ads.php" method="post"&gt;
  &lt;textarea name="code" style="width:400px;height:100px;"&gt;[adminblk.code;block=table]&lt;/textarea&gt;
  &lt;input type="submit" value="Update Information" name="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When i type normal characters like <code>ASDASDAS GASDG SDAD</code> and hit submit it's updating the MySQL table, but the problem comes when i try to submit text in the textarea like this <code>&lt;img src="asdasdas.jpg"&gt;</code></p>
  
  <p>Here is my PHP part of code:</p>
  
  <pre><code>$turn = addslashes($_POST["turn"]);
  $seconds = addslashes($_POST["seconds"]);
  $code = $_POST["code"];
  
              $register_sql="UPDATE videoads SET `enabled`='$turn',`seconds`='$seconds',`code`='".mysql_real_escape_string($_POST["code"])."' WHERE id='1'";          
              $insertAccount = mysql_query($register_sql);
  </code></pre>
  
  <p>So why i can not Update the field when i type special characters?
  When i type normal message it's working okey.</p>
  
  <p>My DB table <code>code</code> is setted to <code>text</code> formation.</p>
  
  <p>Thanks in advance!</p>