title: Inserting into database gives me "localhost not working"
body: <p>I'm trying to insert information into database through two inputs when you click a submit button. But when I click it it says it can't connect to localhost (everything else works so I know it has to be some form of syntax problem) Code:</p>
  
  <pre><code>    &lt;form action="prices.inc.php" method="post"&gt;
      &lt;input class="price-list-input" type="text" id="priceupdate1" name="priceupdate1" required&gt;&lt;/input&gt;
      &lt;input class="price-list-input2" type="text" id="priceupdate2" name="priceupdate2" required&gt;&lt;/input&gt;
      &lt;input class="price-list-button" type="submit" id="priceupdate-button" name="priceupdate-button" value="Uppdatera"&gt;&lt;/input&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>the php..</p>
  
  <pre><code>&lt;?php
  
  require_once('check_login.inc.php');
      define('SECURE', true);
      require_once('connection.php');
  
  
  if(isset($_POST['priceupdate-button'])){
  
      $info = trim(htmlspecialchars($_POST['priceupdate1'], $_POST['priceupdate2']));
  
      // prepared statement
      $stmt = $db-&gt;prepare('INSERT INTO prices (name, price) VALUES = (?, ?)');
      $stmt-&gt;bind_param('ss', $_POST['priceupdate1'], $_POST['priceupdate2']);
      $stmt-&gt;execute();
      $stmt-&gt;store_result();
      $stmt-&gt;bind_result($info);
  
  }
  
  ?&gt;
  </code></pre>