I am new to PHP. My input forms doesn't save any of it in my MySQL database but everytime I press my submit button it shows "register=success", even though its not inserted in my database and its not showing any errors in any line.
index.php
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <link rel="stylesheet" href="css/style.css">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
    </head>
    <body>
        <div class="container">
            <form id="BG" class="col-lg-8" action="includes/register.php" method="POST">
                <div class="form-group">
                    <label for="formGroupExampleInput">Firstname</label>
                    <input type="text" class="form-control col-lg-6" id="formGroupExampleInput" placeholder="Firstname" name="fName">
                </div>
                <div class="form-group">
                    <label for="formGroupExampleInput2">Lastname</label>
                    <input type="text" class="form-control col-lg-6" id="formGroupExampleInput2" placeholder="Lastname" name="lName">
                </div>
                <div class="form-group">
                    <label for="formGroupExampleInput">Plate #</label>
                    <input type="text" class="form-control col-lg-6" id="formGroupExampleInput" placeholder="Plate #" name="plateNo">
                </div>
                <div class="form-group">
                    <label for="formGroupExampleInput2">Vehicle brand</label>
                    <input type="text" class="form-control col-lg-6" id="formGroupExampleInput2" placeholder="Vehicle brand" name="vBrand">
                </div>
                <div class="form-group">
                    <label for="formGroupExampleInput">color</label>
                    <input type="text" class="form-control col-lg-6" id="formGroupExampleInput" placeholder="color" name="color">
                </div>
                <button type="submit" name="submit" class="btn btn-primary">Register</button>
            </form>
        </div>
    </body>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</html>
conn.php
<?php
    $dbSname='localhost';
    $dbUname ='root';
    $pwd='';
    $dbName = 'capstone';
    $conn = mysqli_connect($dbSname,$dbUname,$pwd,$dbName);
register.php
<?php
    include_once 'includes/conn.php';
    $fname=$_POST['fName'];
    $lName=$_POST['lName'];
    $plateNo=$_POST['plateNo'];
    $vBrand=$_POST['vBrand'];
    $color=$_POST['color'];
    $sql = "INSERT INTO register(name,lastname,Plateno,vehiclebrand,color)
            VALUES($fname,$lName,$plateNo,$vBrand,$color);";
    mysqli_query($conn,$sql);
    header("Location: ../index.php?register=success");
?>
I was expecting my input to save data to my MySQL database.
 
     
     
    