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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]