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.";
    {
}

?>

Look in line 23. YOur curly brace is the wrong direction.

Good luck.

It's always the little things!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.