<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Pela mensagem de erro, o problema está bem claro.
Antes de rodar o fetchrow, vc tem que executar a query:
$sth->execute();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Vinicius</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ptfzs@yahoo.com.br href="mailto:ptfzs@yahoo.com.br">Patty Silva</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cascavel-pm@pm.org
href="mailto:cascavel-pm@pm.org">Cascavel Perl Mongers</A> ; <A
title=portoalegre-pm@pm.org
href="mailto:portoalegre-pm@pm.org">Lista-PortoAlegre</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 12, 2007 1:45
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [PortoAlegre-pm] Duvida
Fetchrow_Array</DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 14pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Ola Pessoal, Tudo Bem?<BR><BR>Meu algoritmo é mais ou menos
assim:<BR><BR>busca no BD NOME,ERROR (1hora antes)<BR>IF
ERRO=4<BR> ENTAO<BR> busca no BD NOME,ERROR
(2hora antes)<BR> IF ERROR
=2<BR> ENTAO<BR>
busca no BD NOME,ERROR (3hora
antes)<BR>
IF ERROR=1<BR>
THEN<BR>
ERRO=OK<BR>
INSERI nO BANCO<BR>
ENDIF<BR> ENDIF<BR>ENDIF<BR><BR><BR>Estou usando
o while(($nome,$error)= $sth->fetchrow_array) para recuperar as
variaveos<BR>minha duvida eh:?<BR><BR>Posso usar varios
$sth->fetchrow_array??<BR><BR>Pois estou recebendo o
erro:<BR><BR>DBD::mysql::st fetchrow_array failed: fetch() without
execute()<BR><BR><BR><BR>Como posso fazer varias consultas no Banco...
?\/\/\/?<BR><BR><BR><BR>Obrigada
Pessoal...<BR><BR><BR><BR></DIV></DIV><BR>__________________________________________________<BR>Fale
com seus amigos de graça com o novo Yahoo! Messenger
<BR>http://br.messenger.yahoo.com/
<P>
<HR>
<P></P>_______________________________________________<BR>PortoAlegre-pm
mailing
list<BR>PortoAlegre-pm@pm.org<BR>http://mail.pm.org/mailman/listinfo/portoalegre-pm</BLOCKQUOTE></BODY></HTML>