Re: Bugs in PEAR::DB

From: Date: Thu, 12 Jul 2001 21:47:11 +0000
Subject: Re: Bugs in PEAR::DB
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-686@lists.php.net to get a copy of this message
I find it hard to use numRows after using getAll/getAssoc can somthing be done about it, the db object only allows numRows if you pass it the result object. for exmaple this $sql = "SELECT * FROM SOMETABLE"; $res = $db->query($sql); $data = $db->getAll($sql); $rows = $res->numRows(); would work but it's not the most elegant way to do it :) . Any ideas. Maybe have a getLastResult method could help. yavor

« previous php.pear.dev (#686) next »