Front page | perl.beginners |
Postings from December 2002
why error message?
Thread Next
From:
Robbie Staufer
Date:
December 10, 2002 08:56
Subject:
why error message?
Message ID:
3DF61C94.3BA5E379@scd.ucar.edu
Hi,
Can anyone tell me why this while loop would give me this error message?
while ( ($id) = $sth->fetchrow_array) {
$sth->execute();
@header_row = $sth->fetchrow_array;
## loop through the row array and print with comma space delimiters
## print two new lines at the end of the row for double spacing
for ($i=0; $i < @header_row; $i++) {
print CODEINFO ($header_row[$i]);
print CODEINFO ',';
print CODEINFO ' ';
}
print CODEINFO "\n \n";
}
error: DBD::mysql::st fetchrow_array failed: fetch() without execute()
Many thanks for your time.
Robbie
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Robbie Staufer
NCAR/SCD
1850 Table Mesa Dr. Rm. 42
Boulder, CO. 80305
(303) 497-1836
Thread Next
-
why error message?
by Robbie Staufer