title: Insert ckeditor html code into the database
body: <p>I am trying to insert the ckeditor text into database,I am able to print the code in html format,while inserting that into the db,iam getting the fallowing error</p>
  
  <pre><code>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 'table' at line 1
  </code></pre>
  
  <p><strong>INDEX.PHP</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="ckeditor/smaple.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="ckeditor/ckeditor.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="action.php" method="post"&gt;
  &lt;textarea rows="20" cols="70" class="ckeditor" id="editor1" name="test1"&gt;&lt;/textarea&gt;
  &lt;input type="submit" value="save"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>action.php</strong></p>
  
  <pre><code>&lt;?php
  echo strip_tags($_POST['test1']);
  $content  = $_POST['test1'];
  mysql_connect("localhost","root","");
  $conn = mysql_select_db("test");
  $query = "INSERT INTO table VALUES('','one',mysql_real_escape_string($content)";
  echo $query;
  if(mysql_query($query))
  {
      echo "inserted";
  }
  else
  {
      mysql_error();
  }
  $display = "select * from table";
  $res = mysql_query($display);
  if($res)
  echo "true";
  else
  echo mysql_error();
  while ($result = mysql_fetch_array($res)) {
      echo $res['content'];
  }
  ?&gt;
  </code></pre>
  
  <p>please help me</p>