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