Re: Call to undefined function: fetchrow
| From: | Lukas Smith | Date: | Wed, 07 Apr 2004 20:44:25 +0000 |
| Subject: | Re: Call to undefined function: fetchrow | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-27139@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
Luc de Louw wrote:Hi Daniel, I just debugged a problem with the pecl stats with Derick. Appearently inside the pearweb code was a similar typo which until the recent DB update caused no problems. Espescially since this was just a "lets make things cleaner" fix I suggest that its reverted to prevent more people from stumbling over this BC break. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07Hi all, I just upgraded DB to 1.6.1 and pear to 1.3. Since then fewRow seems not to work anymore. This is my code: <?php error_reporting(E_ALL); include "DB.php"; $user="mail"; $pass="secret"; $host="localhost"; $db_name="mail"; $dsn = "mysql://$user:$pass@$host/$db_name"; $handle = DB::connect($dsn,true); $query = "SELECT quota FROM domain"; $result4 = $handle->query($query, $handle);why do you pass $handle here? this is why you are getting a mismatch error .. you are passing a prepare parameter without having specified a placeholder in your query