MySQL Forums
Forum List  »  PHP

Re: Warning: mysqli_stmt::bind_param() [function.bind-param]: Number of variables doesn't match number of parameters in prepared statement in...
Posted by: Bas van Gaalen
Date: April 04, 2006 10:20AM

Georg Richter wrote:
> If you would add some error handling you could see
> what's going wrong. Prepared statements return
> unbuffered resultsets by default, so if you need a
> nested select you have to store the resultset or
> to use a cursor.

Ah yes, you're absolutely right! $stmt->store_result() did the trick!
It's working now. Thanks Georg!

Bas

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.