my $dbh = DBI->connect("DBI:mysql:fenonn:localhost","fenonn","password +"); my $sth = $dbh->prepare("SELECT data1 FROM table1"); $sth->execute() || die "Couldn't execute statement: DBI::errstr; stopp +ed"; my ( $data ) = $sth->fetchrow_array(); $dbh->disconnect; print $data;
In reply to Re: Disconnecting from a Database
by Indomitus
in thread Disconnecting from a Database
by fenonn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |