Re: Re: Prepared Statements Insert Problem

From: Date: Tue, 04 Sep 2012 02:13:13 +0000
Subject: Re: Re: Prepared Statements Insert Problem
References: 1 2 3 4 5 6 7 8  Groups: php.db 
Request: Send a blank email to php-db+get-48459@lists.php.net to get a copy of this message
On Mon, Sep 3, 2012 at 7:45 AM, Jim Giner <jim.giner@albanyhandball.com> wrote: > On 9/3/2012 2:44 AM, tamouse mailing lists wrote: >> On Sun, Sep 2, 2012 at 10:24 PM, Ethan Rosenberg, PhD >> <erosenberg@hygeiabiomedical.com> wrote: >>> >>> mysqli_stmt_bind_result(): Number of bind variables doesn't match number >>> of >>> fields in prepared statement >> >> What exactly is unclear about that? >> > Actually - from looking at the code the OP posted, I don't see the mis-match > either, assuming that the post contains the actual code. That would be a question, considering the OP code was incorrect as it stood. > I do have a > question tho. Not being familiar with mysqli yet (soon, I know), I'm > wondering what his die clause is actually saying when it mentions: > ... mysqli_stmt($stmt) > > Does the reference to 'mysqli_stmt' mean something special, since it doesn't > reference any particular function? It seems like it should just give a Fatal error for a call to an undefined function, as mysqli_stmt itself is a class, with no constructor method of it's own, as it's created via the mysql_prepare(). I get a little confused when mixing OO and procedural versions, though, so it might do something...

« previous php.db (#48459) next »