Re: Call to undefined function: fetchrow

From: Date: Sun, 21 Mar 2004 22:59:00 +0000
Subject: Re: Call to undefined function: fetchrow
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11432@lists.php.net to get a copy of this message
Luc de Louw wrote:
Lukas Smith wrote: [..]
$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
Actually, I do not remember why, and I do not really understand what a placeholder ist, but it looks like it is the solution to just ommit $handle and call is like this: $result4 = $handle->query($query); Open questions for me are: - What means a "placeholder" (I had a look at http://pear.php.net/manual/en/package.database.db.db-common.query.php) I I did not understood is (maybe because my english is not that good)
Have a look here: http://pear.php.net/manual/en/package.database.db.intro-execute.php
- Why it worked with older PEAR:DB version
I assume the older versions did not check for this usage mistake. 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

« previous php.pear.general (#11432) next »