in reply to Re: Learning DBI
in thread Learning DBI
I'm just trying (at this point) to read the three fields (date, title, and entry) from every row of the News table in this database.my $sth = $dbh->prepare( qw/ SELECT date, title, entry FROM News / ); $sth -> execute() or die "Couldn't execute statement: $DBI::errstr; st +opped"; while ( my ($date, $title, $entry) = $sth->fetchrow_array() ) { print STDOUT "Date: $date Title: $title Entry: $entry\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Learning DBI
by gjb (Vicar) on Nov 07, 2002 at 21:40 UTC | |
|
Re: Re: Re: Learning DBI
by rdfield (Priest) on Nov 08, 2002 at 10:01 UTC | |
|
Re: Re: Re: Learning DBI
by Bishma (Beadle) on Nov 07, 2002 at 21:47 UTC | |
by gjb (Vicar) on Nov 07, 2002 at 22:15 UTC |