title: cant add any content to mysql database
body: <pre><code> &lt;?php
  
      include "config.php";
  
      /*
      CREATE TABLE  `addnews` (
       `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
       `auther` VARCHAR( 255 ) NOT NULL ,
       `title` VARCHAR( 255 ) NOT NULL ,
       `content` LONGTEXT NOT NULL
      ) ENGINE = MYISAM ;
      */
  
      $a = $_POST['author'];
      $t = $_POST['title'];
      $c = $_POST['content'];
  
      if(isset($_POST["add"]) &amp;&amp; $_POST["add"] == "news"){
          $insert = mysql_query('INSERT INTO addnews 
          (author,title,content)
          VALUES
          ("$a","$t","$c")') or die("error");
          if (isset($insert )){
              echo "&lt;h3&gt;Done&lt;/h3&gt;";
          }
      };
  
      echo "
      &lt;form action='".$_SERVER['PHP_SELF']."' method='post'&gt;
      Author : &lt;input type='text' name='author' /&gt;&lt;br&gt;
      Title : &lt;input type='text' name='title' /&gt;&lt;br&gt;
      Content : &lt;textarea name='content'&gt;&lt;/textarea&gt;
      &lt;input type='submit' value='Add news' /&gt;
      &lt;input type='hidden' name='add' value='news' /&gt;
      &lt;/form&gt;
      ";
  
  
      if( gettype($connectdb) == "resource") {
          mysql_close($connectdb);
      }
      ?&gt;
  </code></pre>
  
  <p><strong>i am getting error from this statment i think</strong></p>
  
  <pre><code>if(isset($_POST["add"]) and $_POST["add"] == "news"){
      $insert = mysql_query('INSERT INTO addnews 
      (author,title,content)
      VALUES
      ("$a","$t","$c")') or die("error happend while trying to add information to database");
      if (isset($insert )){
          echo "&lt;h3&gt;Done&lt;/h3&gt;";
      }
  };
  </code></pre>
  
  <blockquote>
    <p><strong>output is : error happend while trying to add information to database and no problem with config.php file (the file that connect to
    database) i am using phpmyadmin</strong></p>
  </blockquote>
  
  <p><a href="http://prntscr.com/91uj3m" rel="nofollow">http://prntscr.com/91uj3m</a> </p>
  
  <p><a href="http://prntscr.com/91ujhe" rel="nofollow">http://prntscr.com/91ujhe</a></p>