maarten_m4 has asked for the wisdom of the Perl Monks concerning the following question:
How is the data being saved and how can i acces that data? For example row by row.my $sth = $dbh->("SELECT name, adres, woonplaats from personen"; $sth ->execute(); my $array_ref = $sth->fetchall_arrayref(); foreach my $row(@$array_ref){ my( $name, $adres, $woonplaats) = @$row; print "$name t $adres t $woonplaats"; }
Updated Steve_p - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fetchall( )
by polettix (Vicar) on Apr 21, 2005 at 10:51 UTC | |
|
Re: fetchall( )
by RatArsed (Monk) on Apr 21, 2005 at 12:17 UTC | |
|
Re: fetchall( )
by pearlie (Sexton) on Apr 21, 2005 at 10:45 UTC | |
by maarten_m4 (Initiate) on Apr 21, 2005 at 11:38 UTC | |
by albert (Monk) on Apr 22, 2005 at 09:43 UTC | |
|
Re: fetchall( )
by Transient (Hermit) on Apr 21, 2005 at 11:53 UTC | |
|
Re: fetchall( )
by maarten_m4 (Initiate) on Apr 21, 2005 at 12:59 UTC | |
by Jasper (Chaplain) on Apr 21, 2005 at 14:25 UTC | |
by maarten_m4 (Initiate) on Apr 21, 2005 at 16:43 UTC | |
by albert (Monk) on Apr 22, 2005 at 09:39 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |