User registration on PHP with MySQL : <p>I create a simple code for user registration, and when user submit the data was not recorded to MySQL.</p>

<p>Here is my logic code </p>

<pre><code>&lt;?php
    $username = $_POST["user"];
    $password = $_POST["pass"];
    $confirmPassword = $_POST["repass"];
    $email = $_POST["email"];

    $username = stripcslashes($username);
    $password = stripcslashes($password);
    $confirmPassword = stripcslashes($confirmPassword);
    $email = stripcslashes($email);

    $con = mysqli_connect('localhost', 'root', '', 'dbtest');
    if($con-&gt;connect_error)
    {
        echo"&lt;script type='text/javascript'&gt;alert('connection to database failed!')&lt;/script&gt;";
    }
    else
    {
        $query = mysqli_query($con, "INSERT INTO 'user'('Username', 'Password', 'Email') VALUES('$username', $password', '$email')");
        echo "You are successfully registered!";
    }
    $con-&gt;close();
?&gt;
</code></pre>

<p>Is there something that I missed?</p>
