im a beginner and a diploma student... i dont have a clue what is the error... please help me solve the error...
<?php 
$servername="localhost";
$username="root";
$password="";
$dbname="slr";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
    die("Connection failed: " . $conn->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 . "<br>" . mysqli_error($conn);
}
<input type="button"value="Finish"onclick="history.go(-2);return true;">
</table>
mysqli_close($conn);
?>
 
     
     
     
    