matth has asked for the wisdom of the Perl Monks concerning the following question:
For this bit of my Perl code:DBD::mysql::st fetchrow_array failed: fetch() without execute() at que +ry_B_testing_changes.pl line 35.
Can any monks kindly explain why?$dbh=DBI->connect('DBI:mysql:genome', 'u', 'p'); $sth = $dbh->prepare ("SELECT P.gene_name_M FROM para_n P WHERE P.number_genes_group = 4"); $sth->execute () while (@ary = $sth->fetchrow_array ()) { foreach (@ary) { #...........rest of code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl DBI problem
by diotalevi (Canon) on Jun 13, 2003 at 23:02 UTC | |
|
Re: Perl DBI problem
by barrd (Canon) on Jun 14, 2003 at 12:31 UTC | |
by jeffa (Bishop) on Jun 14, 2003 at 13:21 UTC | |
by barrd (Canon) on Jun 14, 2003 at 14:19 UTC | |
by jeffa (Bishop) on Jun 14, 2003 at 14:40 UTC | |
by barrd (Canon) on Jun 14, 2003 at 15:00 UTC | |
|
Re: Perl DBI problem
by Itatsumaki (Friar) on Jun 14, 2003 at 15:00 UTC |