Thanks. Problem solved.
Robbie
Mystik Gotan wrote:
> Maybe you're trying to accomplish this:
>
> while ($id == $sth->fetchrow_array) {
>
> I'm pretty sure this will cause the error you're looking for.
>
> --------------
> Bob Erinkveld (Webmaster Insane Hosts)
> www.insane-hosts.net
> MSN: [EMAIL PROTECTED]
>
> >From: Robbie Staufer <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: why error message?
> >Date: Tue, 10 Dec 2002 09:55:48 -0700
> >
> >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]
>
> _________________________________________________________________
> MSN Zoeken, voor duidelijke zoekresultaten!
> http://search.msn.nl/worldwide.asp
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
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]