title: can't move_uploaded_file to folder
body: <p>I can insert the folder path into the database but the picture file doesn't seem to move into that folder?</p>
  
  <pre><code>$pic = $_POST['pic'];
  
  $picName= $_FILES['pic']['name'];
  
  $type = $_FILES['pic']['type'];
  
  $tmp = $_FILES['pic']['tmp'];
  
  $picPath = "/pictures/";
  
    if(is_uploaded_file($tmp)) {
          if(move_uploaded_file($tmp, $picPath . $picName)) {
              echo "congrats! Image is uploaded.";
          }
          else {
              echo "Sorry, couldn't move your picture.";
          }
      }
      else {
          echo "Sorry, couldn't upload your picture.";
      }
  
  $picPath = $picPath . $picName;
  
  mysql_query("INSERT INTO User(pic) VALUES ('$picPath')");
  </code></pre>
  
  <p>I get this echo message: Sorry, couldn't upload your picture.</p>
  
  <p><strong>The php files is saved on public_html folder, and I have a pictures folder where I want to move the users pictures into.</strong></p>
  
  <p>The insertion works as I can store the $picPath in my database, but the picture don't get stored in my folder.</p>