Show sourcecode
The following files exists in this folder. Click to view.
webbsrvprg/projects/slutprojekt/
blala.php
createtable.php
deletetable.php
deletetables.php
login.php
signup.php
verify.php
verify.php
21 lines UTF-8 Windows (CRLF)
<!doctype html>
<html>
<body>
<?php
include ('../../dbconnection.php');
if (isset($_GET["email"]) && isset($_GET["token"])) {
$email = $_GET["email"];
$token = $_GET["token"];
echo $email;
echo $token;
$sql = "UPDATE users SET verified = 1 WHERE email = $email AND token = $token";
$stmt = $dbconn->prepare($sql);
$stmt->execute();
echo "Ditt konto är nu verifierat";
}
?>
</body>
</html>