Weird warnings in prepared statement query
| From: | Ludvig Ericson | Date: | Sun, 05 Mar 2006 23:57:37 +0000 |
| Subject: | Weird warnings in prepared statement query | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-41382@lists.php.net to get a copy of this message | ||
When I run this code: http://nopaste.php-q.net/196260
I get two warnings, first on line 5 and then line 7.
Line 5: Warning: mysqli_stmt::bind_param(): Number of variables
doesn't match number of parameters in prepared statement
Line 7: Warning: mysqli_stmt::bind_result(): Number of bind variables
doesn't match number of fields in prepared statement
I'm thinking this is really weird since the amount of parameters are
just as many.
Any ideas? I've been sitting with this problem all day :\
I'm thinking a simple query() call is easier.