Re: Dynamic Prepared Statements

From: Date: Fri, 24 Jul 2009 06:49:21 +0000
Subject: Re: Dynamic Prepared Statements
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-46352@lists.php.net to get a copy of this message
Warning*: call_user_func_array() [function.call-user-func-array<http://localhost/mbpa/function.call-user-func-array>]: First argument is expected to be a valid callback, 'Array' was given in * C:\xampp\htdocs\mbpa\classes\db.php* on line *45* *Fatal error*: Call to a member function execute() on a non-object in * C:\xampp\htdocs\mbpa\classes\db.php* on line *47*
Your $stmt var is no object. Seems like the prepare call returned no mysqli_stmt object but false. Check that with var_dump and the error property of the mysqli object.

« previous php.db (#46352) next »