title: PHP inserting data to mySQL two times instead of one
body: <pre><code>&lt;?php
  $servername = "localhost";
  $username = "root";
  $password = "pass";
  $dbname = "test";
  
  $name="admin";
  $pass="passerino";
  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  if ($conn-&gt;connect_error) {
  die("Connection failed: " . $conn-&gt;connect_error);
  }else {
    echo nl2br("Conected \n");
  }
  $sqlin="INSERT INTO data_test (username, password) VALUES ('valname','valpass')";
  $result=$conn-&gt;query($sqlin);
  if ($conn-&gt;query($sqlin) === TRUE) {
  echo "New record created successfully";
  } else {
   echo "Error: " . $sqlin . "&lt;br&gt;" . $conn-&gt;error;
   }
   $conn-&gt;close();
   include_once "read.php";
   ?&gt;
  </code></pre>
  
  <p>Hello i have this simple .php file to insert data into mySQL database,but instead of once it does it two times with one request.How can i stop this?I am using wamp server x64,chrome,php 5.5.12;
  P.S read.php displays the data table</p>