- or download this
#!/usr/bin/perl
use DBI;
...
print "Query will return $sth->{NUM_OF_FIELDS} fields.\n\n";
print "Field names: @{ $sth->{NAME} }\n";
- or download this
while ( my($sno, $name) = $sth->fetchrow() ) {
print "$name: $sno\n";
print "<img src=\"" . $name . "\" >\n";
}
$sth->finish;
- or download this
$dbh->disconnect;
print "succefully disconnected\n";
print "</body></html>\n";