Re: fetchInto() not defined

From: Date: Mon, 19 Aug 2002 16:51:41 +0000
Subject: Re: fetchInto() not defined
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2158@lists.php.net to get a copy of this message
On Sun Aug 18, 2002 at 02:4251PM -0500, Kevin Breit wrote: > Fatal error: Call to undefined function: fetchinto() in > /home/kbreit/personal/kdjournal/comments/comment_manip.php on line 58 Are you sure that your connecting/querying stuff is successful? Maybe you should add some error checking to your code. Example: <?php $db = DB::connect('...'); if (PEAR::isError($db)) { echo 'Doh, something went wrong.' } $sth = $db->query('...'); if (PEAR::isError($sth)) { echo '...'; } ?> > function retr_comments($db, $reply_to_id) ^^^ It might be smarter to use &$db here. -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.general (#2158) next »