develooper Front page | perl.beginners | Postings from December 2002

why error message?

Thread Next
Robbie Staufer
December 10, 2002 08:56
why error message?
Message ID:

Can anyone tell me why this while loop would give me this error message?

while ( ($id) = $sth->fetchrow_array) {
  @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 Staufer
1850 Table Mesa Dr. Rm. 42
Boulder, CO. 80305
(303) 497-1836

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About