Re: PHPLib and Pear merge

From: Date: Wed, 07 Mar 2001 16:27:42 +0000
Subject: Re: PHPLib and Pear merge
References: 1 2  Groups: php.pear 
Request: Send a blank email to php-pear+get-1625@lists.php.net to get a copy of this message
* Paul Meagher wrote: > Could you elaborate upon this limitation with a simple example of what you > can't do with phplib and what you can do with PEAR:DB? PHPLIB: $db = new DB_my; $db->query("select foo from bar"); while ($db->next_record()) { $id = $db->f("foo"); $db->query("select bar from foo"); while ($db->next_record()) { . . . } } that doesn't work. Instead, you have to do: $db = new DB_my; $db1 = new DB_my; $db->query("select foo from bar"); while ($db->next_record()) { $id = $db->f("foo"); $db1->query("select bar from foo"); while ($db1->next_record()) { . . . } } -- Björn Schotte bjoern@php.net http://rent-a-phpwizard.de/ bjoern@baer.main.de Software dev advocate: http://www.advogato.org/person/baerli/

« previous php.pear (#1625) next »