in reply to sth fetch only grabbing back first result
my $data = qq(SELECT search, engine, time FROM searches WHERE DATE_SUB +(CURDATE(),INTERVAL 7 DAY) <= time); my $sth = $dbh->prepare($data); $sth->execute() or die $dbh->errstr; while(my $r = $sth->fetchrow_hashref) { print "$r->{search} $r->{engine} on $r->{time}<br>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sth fetch only grabbing back first result
by friedo (Prior) on Aug 10, 2006 at 18:52 UTC | |
by webfiend (Vicar) on Aug 10, 2006 at 22:30 UTC | |
by gcalexander (Novice) on Aug 12, 2006 at 03:35 UTC |