in reply to Dont allow multiple registrations or automated script problem
my $sth = $dbh->prepare($your_sql_statement); my $row = $sth->fetchrow_hashref; print "not good\n" if ($row->{date} + (60*5) < time); $sth->finish;
If you'll be doing queries on the 'date' field (more than sorting). Then move over to the DATETIME or TIMESTAMP data type, where it will be good for the DB to know it's a time and can do SQL things with it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dont allow multiple registrations or automated script problem
by Nik (Initiate) on Oct 21, 2006 at 14:57 UTC | |
by grep (Monsignor) on Oct 21, 2006 at 15:56 UTC |