Unable to find fetchRow

From: Date: Tue, 14 Jan 2003 03:55:58 +0000
Subject: Unable to find fetchRow
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3294@lists.php.net to get a copy of this message
I was under the impression from the pear manual that the result from a query to a database was a DB_Result. This class is suppose to have a function called fetchRow. Reading up on some tutorials they use the same function call to retrieve the rows from a query result. Yet I get the following error: Fatal error: Call to undefined function: fetchrow() in /home/storri/.www-docs/includes/menu.inc.php3 on line 52 <PHP> $sql = "select * from menus where Parent_Index == 0"; $result = $db->query($sql); if (DB::isError($db)) { die ($db->getMessage()); } $counter = 0; <ERROR: no fetchRow defined> while ($row = $result->fetchRow()) { $line .= "<a href='#' onMouseover='showmenu(event,linkset[" . $counter . "])' onMouseout='delayhidemenu()'>"; $line .= $row[description] . "</a>"; $counter += 1; } Stephen -- Stephen Torri <storri@sbcglobal.net>

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.pear.general (#3294) next »