&account_verify; use DBI; my $dbh = DBI->connect('DBI:mysql:MAIL') or die "Couldn't connect to database: " . DBI->errstr; $sql = "SELECT DISTINCT date FROM mailserve"; $sth = $dbh->prepare($sql) or print "preparing: ",$dbh->errstr; $sth->execute or print "executing: ", $dbh->errstr; $row = $sth->fetchrow_hashref; $dbh->disconnect; ######################## &header; print <To Do Date Reports:

EOF print <$row->{'date'} EOF while (@rowxx = $sth->fetchrow_array()) # keep fetching until # there's nothing left { print <$rowxx[1] EOF } print <
EOF $sth->finish; &footer;