List:General Discussion« Previous MessageNext Message »
From:Martin Ramsch Date:September 14 1999 10:34am
Subject:Re: Perl
View as plain text  
On Tue, 1999-09-14 11:23:52 +0100, A. Brandic wrote:
> Sorry Martin,  Here is the whole thing.
>             while (($code) = $sth->fetchrow_array)
The fetchrow_array method fetches the next result row and returns an
array with all the field values (the field names don';t matter in this
case, as you just get an array of values).  With th code above you
only store the first one of these fields in $code ...
Try this:
              while (($code,$id) = $sth->fetchrow_array)
>             {
>               print("Code", $code);  # this is fine
>               print("ID",$id); # this is problem         
>             } 

Martin Ramsch <m.ramsch@stripped> <URL: >
PGP KeyID=0xE8EF4F75 FiPr=52 44 5E F3 B0 B1 38 26  E4 EC 80 58 7B 31 3A D7
any front-ends for MySQLRajesh Fowkar14 Sep
  • PerlA. Brandic14 Sep
    • Re: PerlMartin Ramsch14 Sep
      • Re: PerlA. Brandic14 Sep
        • Re: PerlMartin Ramsch14 Sep
  • Re: any front-ends for MySQLMike Machado14 Sep