Re: Re: Prepared Statements Insert Problem

tamouse mailing lists <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <CAHUC_t-bYmOpZY7_Rj7QEU-tSLbP4ibYvKbORyKu7HB0Uy2ErQ@mail.gmail.com>
On Mon, Sep 3, 2012 at 7:45 AM, Jim Giner <[email protected]> wrote:
> On 9/3/2012 2:44 AM, tamouse mailing lists wrote:
>> On Sun, Sep 2, 2012 at 10:24 PM, Ethan Rosenberg, PhD
>> <[email protected]> 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...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.