title: Having problems switching over to mySQLi
body: <p>I'm trying to do a simple HTML form that sends data to DB:</p>
  
  <p>Form:</p>
  
  <pre><code>&lt;form action="processor.php" method="post"&gt;
      &lt;div class="field-box"&gt;
          &lt;label&gt;Name:&lt;/label&gt;
          &lt;input  type="text" name="name" /&gt;
      &lt;/div&gt;
      &lt;div class="field-box"&gt;
          &lt;label&gt;Age:&lt;/label&gt;
          &lt;input  type="text" /&gt;
  
      &lt;/div&gt;
      &lt;div class="field-box"&gt;
          &lt;label&gt;Phone Number:&lt;/label&gt;
          &lt;input type="text" name="email" /&gt;
      &lt;/div&gt;
      &lt;div class="field-box"&gt;
          &lt;label&gt;Email:&lt;/label&gt;
          &lt;input type="text" name="username"/&gt;
      &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And the SQL to send the data on processor.php:</p>
  
  <pre><code> //Connecting to sql db.
   $connect = mysqli_connect("XXXXXXX","XXXXXXX","XXXXXXX","XXXXXX");
   //Sending form data to sql db.
   mysqli_query($connect,"INSERT INTO users (name, age, phone, email) VALUES    ('$_POST['name']','$_POST['age']', '$_POST['phone']', '$_POST['email']')";
   mysqli_close($connect);
  </code></pre>
  
  <p>I don't get error messages it just takes me to a blank page and no records are inserted into database.</p>