Re: Call to undefined function: fetchrow
| From: | Lukas Smith | Date: | Sun, 21 Mar 2004 22:28:21 +0000 |
| Subject: | Re: Call to undefined function: fetchrow | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11429@lists.php.net to get a copy of this message | ||
Luc de Louw wrote:
Hi 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 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 07