Skip to content

Commit 08569c9

Browse files
committed
redirect back to home
1 parent 85a3c41 commit 08569c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/track.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
$sql = "UPDATE Pictures SET Votes = Votes - 1 WHERE picID = '$photoID'";
3232

3333
$res = $pdo->exec($sql);
34-
var_dump($res);
34+
header('Location: ' . getenv('APP_URL'));
3535
} catch (\PDOException $e) {
3636
throw new \PDOException($e->getMessage(), (int)$e->getCode());
3737
}

0 commit comments

Comments
 (0)