RE: how to print mysql table to text file backup with perl

2003-01-07 Thread fliptop
On Mon, 6 Jan 2003 at 20:44, Hughes, Andrew opined: HA:That makes a lot of sense. If I strip out the pipes, tabs, hard returns HA:etc. going into the database table, do you think that I should be okay not HA:using the module? why waste your time? the csv modules already on cpan do it all for yo

RE: how to print mysql table to text file backup with perl

2003-01-06 Thread Hughes, Andrew
, Andrew Cc: [EMAIL PROTECTED] Sent: 1/6/2003 6:21 PM Subject: RE: how to print mysql table to text file backup with perl On Mon, 6 Jan 2003 at 15:11, Hughes, Andrew opined: HA:my $filename = "out.txt"; HA:open(OUTFILE,">$filename"); HA: $stmt = qq { select * from 2002broc

RE: how to print mysql table to text file backup with perl

2003-01-06 Thread fliptop
On Mon, 6 Jan 2003 at 15:11, Hughes, Andrew opined: HA:my $filename = "out.txt"; HA:open(OUTFILE,">$filename"); HA: $stmt = qq { select * from 2002brochurecontest }; HA: $sth = $dbh->prepare ($stmt); HA: $sth->execute (); HA: $count = 0; HA: while (my $row = $sth->fetchrow_hashref()) HA:{

RE: how to print mysql table to text file backup with perl

2003-01-06 Thread Hughes, Andrew
|$row->{purchase}\n"; } $sth->finish(); close(OUTFILE); Thanks, Andrew -Original Message- From: LRMK [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 2:16 PM To: Hughes, Andrew; [EMAIL PROTECTED] Subject: Re: how to print mysql table to text file backup wi

Re: how to print mysql table to text file backup with perl

2003-01-06 Thread LRMK
TED]> Sent: Tuesday, January 07, 2003 12:58 AM Subject: how to print mysql table to text file backup with perl > I have a mysql table with about 3000 rows of data on which that I need to > perform a daily backup. Because I am on a shared hosting account I do not > have administrative rights

how to print mysql table to text file backup with perl

2003-01-06 Thread Hughes, Andrew
I have a mysql table with about 3000 rows of data on which that I need to perform a daily backup. Because I am on a shared hosting account I do not have administrative rights to the database. To back it up currently I have a script that prints each line of data to the browser delimited with pipes