Re: MDB2 : never ending story

From: Date: Mon, 13 Nov 2006 16:59:44 +0000
Subject: Re: MDB2 : never ending story
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-244555@lists.php.net to get a copy of this message
On Mon, 2006-11-13 at 17:49 +0100, Alain Roger wrote: > Dear all, > > i still got the same error when i run this code : > ==> Call to a member function fetchRow() on a non-object on line "while Then why not try something else? Try this: $db2 =& MDB2::connect($dsn, $options); if (PEAR::isError($db2)) { die("Error connection : ".$db2->getMessage()."<br><br>".$db2->getUserinfo()); } $db2->setLimit($first, $count); //set the first row that you want and the number of rows after that that you want... $res = $db2->exec($stmt); if (PEAR::isError($res)) { $ret = false; } else { .............; --Paul

« previous php.general (#244555) next »