title: upload image file location using prepared statement
body: <p>I used blob data type in mysql and also i used blob in bind_para letter "b", i can see the image in folder but it cant save in database so this is the bind_para name $file below, if i replace blob "b" with letter "s" in bind_para it will save [BLOB - 20 B] so the letter "b" is not storing for image?</p>
  
  <pre><code>&lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
      Select image to upload:
      &lt;input type="file" name="fileToUpload"&gt;
      &lt;input type="submit" value="Upload Image" name="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>here is the upload.php</p>
  
  <pre><code>$target_dir = "uploads/";
  $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
   $file="uploads/".$_FILES["fileToUpload"]["name"];
   if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
      echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";
  } else {
      echo "Sorry, there was an error uploading your file.";
  }
  </code></pre>
  
  <p>prepared statement:</p>
  
  <pre><code> $stmt = mysqli_stmt_init($connection);
      $query = "INSERT INTO user (firstname, lastname, email, password, image, birthday, gender) VALUES (?, ?, ?, ?, ?, ?, ?)";
  
      mysqli_stmt_prepare($stmt, $query);
      mysqli_stmt_bind_param($stmt, "sssssss", $firstname, $lastname, $email, $password, $file, $birthday, $gender);
      mysqli_stmt_execute($stmt);
  </code></pre>