fetchInto() not defined
| From: | Kevin Breit | Date: | Sun, 18 Aug 2002 19:42:51 +0000 |
| Subject: | fetchInto() not defined | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2150@lists.php.net to get a copy of this message | ||
Hey,
I am using PEAR for some database abstraction stuff. However, I am
getting the following error:
Fatal error: Call to undefined function: fetchinto() in
/home/kbreit/personal/kdjournal/comments/comment_manip.php on line 58
I can't tell why that is happening. The code which calls the offending
code is:
include('kdconnect.php');
retr_comments($db, $reply_to_id);
include('kddisconnect.php');
retr_comments is:
function retr_comments($db, $reply_to_id)
{
$sql = "SELECT * FROM message_board WHERE reply_to_id=$reply_to_id";
$res = $db->query($sql);
for($i = 0 ; $i < count($res) ; $i++)
{
while ($res->fetchInto($row))
{
display_comment($row[0], $row[5], $row[1], $row[2], $row[3] );
}
}
}
kdconnect.php is:
<?
require_once 'DB.php';
...lots of stuff...
so it does call DB.php.
Why am I getting this error?
Thanks!
--
Kevin Breit <mrproper@ximian.com>