Re: removing dupes from fetchrow_array()?

2005-03-23 Thread Steven Schubiger
On 24 Mar, Sara wrote: > What If I want to remove dupes from @row? like if $row[2] is similar in > multiple records, > only one entry should be showed, the duplicates should not appear in the > print. > Any ideas? #! /usr/bin/perl use strict; use warnings; { local $" = "\n"; my (@d

RE: removing dupes from fetchrow_array()?

2005-03-23 Thread Bob Showalter
Sara wrote: > Following is the code used in my CGI script. > > my $query = $dbh -> prepare("SELECT * FROM invoices WHERE ID = > '$ID'"); $query -> execute(); > while (my @row = $query -> fetchrow_array()){ > print "$row[1] - $row[2] - $row[3]"; > } > > What If I want to remove dupes from @row? li

Re: removing dupes from fetchrow_array()?

2005-03-23 Thread Chris Devers
On Thu, 24 Mar 2005, Sara wrote: > Following is the code used in my CGI script. > > my $query = $dbh -> prepare("SELECT * FROM invoices WHERE ID = '$ID'"); > $query -> execute(); > while (my @row = $query -> fetchrow_array()){ > print "$row[1] - $row[2] - $row[3]"; > } > > What If I want t

removing dupes from fetchrow_array()?

2005-03-23 Thread Sara
Following is the code used in my CGI script. my $query = $dbh -> prepare("SELECT * FROM invoices WHERE ID = '$ID'"); $query -> execute(); while (my @row = $query -> fetchrow_array()){ print "$row[1] - $row[2] - $row[3]"; } What If I want to remove dupes from @row? like if $row[2] is similar

Re: call a cgi-script from a HTML-form

2005-03-23 Thread Bill Stephenson
On Mar 23, 2005, at 5:37 AM, Thomas Bätzler wrote: Grüezi, Krause Susanne <[EMAIL PROTECTED]> asked: I try to call a Perl-script from a HTML-form (method get). The result, I am getting, is wrong. Instead of executing the script, the webserver is asking me, where I wont to sa

RE: call a cgi-script from a HTML-form

2005-03-23 Thread Thomas Bätzler
Grüezi, Krause Susanne <[EMAIL PROTECTED]> asked: > I try to call a Perl-script from a HTML-form (method get). > > The result, I am getting, is wrong. > > Instead of executing the script, the webserver is > asking me, where I wont to save (per ftp) the Perl-script. > > >

call a cgi-script from a HTML-form

2005-03-23 Thread Krause Susanne
Hi all. I try to call a Perl-script from a HTML-form (method get). The result, I am getting, is wrong. Instead of executing the script, the webserver is asking me, where I wont to save (per ftp) the Perl-script. What I am doing wrong ? Any help

Re: image manipulation (scaling)

2005-03-23 Thread Todd W
"Ingo Weiss" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all, I need have my CGI scale images on the server, and I was wondering whether there is a "standard" perl module that can do that (and possibly other image manipulation tasks). I am looking for one that: - is easy to un