From 8da70ca53a753b4989233a4efb9c7cccde5458f4 Mon Sep 17 00:00:00 2001 From: briandilley Date: Mon, 23 Oct 2006 23:52:13 +0000 Subject: [PATCH] forgot something --- kwotes-lib.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kwotes-lib.pl b/kwotes-lib.pl index d74110d..d3170c1 100755 --- a/kwotes-lib.pl +++ b/kwotes-lib.pl @@ -64,6 +64,11 @@ sub validate_captcha { # get count my $row = $sth->fetchrow_hashref(); my $count = $row->{"count"}; + + # delete it + $sth = $dbh->prepare("DELETE FROM captchas WHERE id=?"); + $sth->bind_param(1, $cid); + $sth->execute(); # return return ($count>0);