title: textarea post into mysql not working
body: <p>I have a textarea in a form that im trying to POST into a mysql database.  However, when i insert the values, i get about 5 lines in the database. 4 of them have no information or minimal information and one of the lines is how i want it.  How can i get rid of the other four lines? thanks.</p>
  
  <p>EDIT:  actually none of the lines have all the right info in the right spots and i have double checked the inset statement to make sure everything lines up.</p>
  
  <p>the code:</p>
  
  <pre><code>&lt;form method='POST' action="index.php"&gt;
  &lt;textarea id ='answerbox' autocomplete='off' cols="80" rows="5" name='answer'&gt;&lt;/textarea&gt;
  &lt;input type='submit' value='submit'&gt;
  
  &lt;?php
      include 'connect.php';
      $date=date("Y-m-d");
      $time=time();
              $answer=['answer'];
      $user=$_SESSION['username'];
      $id=$_GET['id'];
      $put=mysql_query("INSERT INTO solutions VALUES ('','0','$date','$time','$user', '$answer')");
      ?&gt;
  </code></pre>