0

PHP Parse error: syntax error, unexpected end of file in /var/www/ET/password/changepassword.php on line 27

Can someone please tell me what I'm doing wrong in the following code to get the error above?

<?php

$db = new SQLite3('./users.db', SQLITE3_OPEN_READWRITE);

if(!$db)
{
        echo "Could not open/access DB";
}
else
{
    $userPsswd1 = $_POST['psswd1'];
    $userpsswd2 = $_POST['psswd2'];
    $email = $_POST['email'];

    if($userPsswd1 == $userPsswd2)
    {
        $db->exec("INSERT INTO users VALUES('$email', '$userPsswd1')");
        echo "Your password has been reset.";
    }
    else
    {
        echo "Your passwords do not match.";
    {
}

?>
2
Contributors
2
Replies
8
Views
4 Years
Discussion Span
Last Post by lewashby
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.