sub write1 { my $STH = shift; while ( @data=$STH->fetchrow_array() ) { print "
"; print ""; print ""; print "

"; print ""; } }