[thelist] fetchrow_arrayref and packages

Dean Mah dsmah at home.com
Fri Nov 24 00:06:15 CST 2000


Have you connected to the database and put the database handle into
$db?  Have you checked the return values from prepare() and execute()?
Can you show some more context or e-mail the script so that I can take
a look at it?

Dean


Adrian Fischer writes:

> Can someone please tell me why this:
> <snip>
>  $dbh=$db->prepare("SELECT docId,docPassword,docEmail,docAccountEnd FROM
> tblDockets WHERE docAccountEnd <=  $current_time  AND docClosed=0 ");
> $dbh->execute();
> while ($varDBInfo = $dbh->fetchrow_arrayref) {
> </snip>
> 
> would return this:
> 
> Can't call method "fetchrow_arrayref" without a package or object reference
> at dockets.pl line 769
> 
> I have tried to work out what the object or package is but am stumped.
> 
> Much appreciated




More information about the thelist mailing list