title: Select in HTML FORM + IMAGE UPLOAD + PHP + MYSQL
body: <p>Hello I have one big question. I have php code and a html form with image upload input and also some text input places and its working fine, but I want to add dropdown select in my form. But after I placed the select element in my code its not longer uploading the photo to the server and not pasting the mysql data into my database. I hope you can help me.</p>
  
  <pre><code>&lt;?php    
      if(isset($_POST['upload_img'])){
  
          $file_name = $_FILES['image']['name'];
          $file_type = $_FILES['image']['type'];      
          $file_size = $_FILES['image']['size'];
          $file_tmp_name  = $_FILES['image']['tmp_name'];
  
          if($file_name){
              move_uploaded_file($file_tmp_name,"images/$file_name");
          }
      }
  ?&gt;
  </code></pre>
  
  <pre><code>&lt;?php
      include 'includes/upload.php';
  
      if (isset($_POST['upload_img']) &amp;&amp; $_POST['upload_img']=="submit")
      {
          $image = $file_name;
          $car_number = addslashes($_POST['car_number']);
          $manufacture = addslashes($_POST['manufacture']);
          $model = addslashes($_POST['model']);
          $year = addslashes($_POST['year']);
          $transmission = addslashes($_POST['transmission']);
          $type = addslashes($_POST['type']);
          $currency = addslashes($_POST['currency']);
          $km_mileage = addslashes($_POST['km_mileage']);
          $fuel_type = addslashes($_POST['fuel_type']);
  
          $sql = "INSERT INTO my_garage (image,car_number,manufacture,model,year,transmission,type,currency,km_mileage,fuel_type) VALUES ('$image', '$car_number','$manufacture','$model','$year','$transmission','$type','$currency','$km_mileage','$fuel_type')";
          if($result = mysql_query($sql) or die (mysql_error()))
          {
              echo "uspeshno.&lt;br&gt;";
          }
      }else{
  ?&gt;
  
          &lt;!-- Compiled and minified CSS --&gt;
          &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"&gt;
  
          &lt;!-- Compiled and minified JavaScript --&gt;
          &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"&gt;&lt;/script&gt;
          &lt;link rel="stylesheet" type="text/css" href="css/styles.css"&gt;
  
  
  
          &lt;form action="" method="post" enctype="multipart/form-data"&gt;
  
          &lt;label&gt;upload image&lt;/label&gt;&lt;br&gt;
          &lt;input type="file" name="image"&gt;&lt;br&gt;
          &lt;br&gt;&lt;br&gt;
  
          car_number:
          &lt;input name="car_number" type="text"&gt;&lt;br&gt;&lt;br&gt;
  
  
          &lt;select class="browser-default" name="manufacture"&gt;
              &lt;option value=""&gt;Select Manufacturer&lt;/option&gt;
              &lt;option value="Mercedes-Benz"&gt;Mercedes-Benz&lt;/option&gt;
              &lt;option value="Hyundai"&gt;Hyundai&lt;/option&gt;
              &lt;option value="Toyota"&gt;Toyota&lt;/option&gt;
          &lt;/select&gt;
  
          manufacture:
          &lt;input name="manufacture" type="text"&gt;&lt;br&gt;&lt;br&gt;
          model:
          &lt;input name="model" type="text"&gt;&lt;br&gt;&lt;br&gt;
          year:
          &lt;input name="year" type="text"&gt;&lt;br&gt;&lt;br&gt;
          transmission:
          &lt;input name="transmission" type="text"&gt;&lt;br&gt;&lt;br&gt;
          type:
          &lt;input name="type" type="text"&gt;&lt;br&gt;&lt;br&gt;
          currency:
          &lt;input name="currency" type="text"&gt;&lt;br&gt;&lt;br&gt;
          km_mileage:
          &lt;input name="km_mileage" type="text"&gt;&lt;br&gt;&lt;br&gt;
          fuel_type:
          &lt;input name="fuel_type" type="text"&gt;&lt;br&gt;&lt;br&gt;
  
          &lt;input name="upload_img" class="btn" type="submit" value="submit"&gt;
          &lt;/form&gt;
  
  &lt;?php
      }
  ?&gt;
  </code></pre>