rzayas has asked for the wisdom of the Perl Monks concerning the following question:
#html code replies that everything works (not shown)#select the fields from the database $dbh = gsm::connect (); $sth=$dbh->prepare ("select * from meetings order by meetings.id"); $sth->execute (); #process the columns received, one at a time while ((@report)=$sth ->fetchrow_array()) { foreach(@report) { print SAVE "$_\t"; shift (@report); } print SAVE "\n"; } #cleanup $sth->finish; $dbh->disconnect(); close SAVE;
2004-12-20 Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl MySql
by Zaxo (Archbishop) on Dec 20, 2004 at 08:26 UTC | |
|
Re: Perl MySql
by nite_man (Deacon) on Dec 20, 2004 at 08:20 UTC | |
|
Re: Perl MySql
by sasikumar (Monk) on Dec 20, 2004 at 08:34 UTC | |
|
Re: Perl MySql
by steves (Curate) on Dec 20, 2004 at 14:20 UTC |