title: input in textarea won't update in mysql table
body: <p>I've created a form to update the banner info on my website. Everything seems to update except the input that is typed into the "textarea" called "desc". The code looks right and it is driving me insane.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  
  
  &lt;form action="aupdate.php" method="POST" enctype="multipart/form-data"&gt;
  
      Your or your company's name:&lt;br&gt;
      &lt;input type="text" name="com" size="60"&gt;&lt;br&gt;
  
  
      URL:&lt;br&gt;
      &lt;input type="text" name="url" size="80"&gt;&lt;br&gt;
  
  
      Please enter the username that you will use to update your advertisement info:&lt;br&gt;
      &lt;input type="text" name="user" size="80"&gt;&lt;br&gt;
  
      Please enter the password that you will use to update your advertisement info:&lt;br&gt;
      &lt;input type="text" name="pass" size="80"&gt;&lt;br&gt;
  
     &lt;br&gt;
     &lt;br&gt;
  
  
  &lt;br&gt;
      File:&lt;br&gt;
      &lt;input type="file" name="image"&gt;
  
            advertisement description:&lt;br&gt;
  
   &lt;textarea name="desc" id="desc" cols="35" rows="5" &gt;&lt;/textarea&gt;
  
        &lt;input type="submit" value="update your ad!"&gt;
  
  
      &lt;/form&gt;
  
  &lt;?php
  
  //connect to database
  require("connect.php");
  
  //get user made username
  $user = $_POST['user'];
  
  //get user made password
  $pass = $_POST['pass'];
  
  //encrypt user made password
  $encpass = hash('sha256', $pass);
  
  //file properties
  $file = $_FILES['image']['tmp_name'];
  
  //initialize company name and description
  $com = $_POST['com'];
  $desc = $_POST['desc'];
  $url = $_POST['url'];
  
  
  
  
  //check to see if coupon code and other essential info entered
  if (!$user || !$pass )
  {
      echo "Please enter updated info with username and password.";
  }
  else
  {
  
  //retrieve data from password table
  $query = mysql_query ("SELECT * FROM apartment WHERE pass = '$encpass' ");
  
  //get number of rows in table
  $numrows = mysql_num_rows ($query);
  
  //check if code is right or exists
  if ($numrows !=0)
  {
  
      // code to login
      while ($row = mysql_fetch_assoc ($query))
      {
          //retrieve code from database to match with the code that was put into field
          $dbuser = $row['user'];
          $dbpass = $row['pass'];
      }
  
      //check to see if they match
      if ($user == $dbuser &amp;&amp; $encpass == $dbpass )
      {
  
  
      //check to see if a file has even been submitted
      if (!$file)
      {
  
          echo "please upload image";
      }
      else
      {
          //get image file attributes
      $image = addslashes(file_get_contents ($_FILES['image']['tmp_name']));
      $image_name = addslashes($_FILES['image']['name']);
      $image_size = addslashes(getimagesize($_FILES['image']['tmp_name']));
  
      //check if image file size is right
      if ($image_size==FALSE)
          echo "that's not an image.";
      else
      {
  
  
  mysql_query ("UPDATE apartment SET desc = '$desc' WHERE user ='$user'"); 
  mysql_query ("UPDATE apartment SET name = '$image_name' WHERE user ='$user'"); 
  mysql_query ("UPDATE apartment SET com = '$com' WHERE user ='$user'"); 
  mysql_query ("UPDATE apartment SET url = '$url' WHERE user ='$user'"); 
  mysql_query ("UPDATE apartment SET image = '$image' WHERE user ='$user'"); 
  
  
              echo "advertisement successfully updated!";
  
  
  
      }
    }
  
  
  }
  else
  
  
      echo "Incorrect username or password.";
  }
  else 
  
  
  
      echo "Incorrect username or password.";
  
  }
  
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>