title: Parse error: syntax error, unexpected '<', expecting end of file in C:\xampp\htdocs\SLR\CreateData2.php on line 23
body: <p>im a beginner and a diploma student... i dont have a clue what is the error... please help me solve the error...</p>
  
  <pre><code>&lt;?php 
  $servername="localhost";
  $username="root";
  $password="";
  $dbname="slr";
  
  $conn = new mysqli($servername, $username, $password, $dbname);
  
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  } 
  
  $sql = "INSERT INTO software (soft_id, soft_name, installed_date, expiry_date, product_key) 
  VALUES ('2', 'Dhurga', '2016-01-01', '2016-04-30', 'stevenreega@gmail.com')";
  
  if (mysqli_query($conn, $sql)) {
      echo "New record created successfully";
  } else {
      echo "Error: " . $sql . "&lt;br&gt;" . mysqli_error($conn);
  }
  
  
  &lt;input type="button"value="Finish"onclick="history.go(-2);return true;"&gt;
  &lt;/table&gt;
  mysqli_close($conn);
  ?&gt;
  </code></pre>