ID:               36631
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ludvig dot ericson at gmail dot com
-Status:           Assigned
+Status:           Feedback
 Bug Type:         MySQLi related
 Operating System: Windows XP
 PHP Version:      5CVS-2006-03-06 (snap)
 Assigned To:      georg
 New Comment:

Please provide a *short* reproducable testcase (including your table
definition) and also the version numbers of libmysql and MySQL Server.


Previous Comments:
------------------------------------------------------------------------

[2006-03-06 16:07:44] ludvig dot ericson at gmail dot com

Description:
------------
When I run this code: http://nopaste.php-q.net/196469 (I removed the
LIMIT on line 48 too)
I get two warnings:

Warning: mysqli_stmt::bind_param() [function.bind-param]: Number of
variables doesn't match number of parameters in prepared statement in
C:\Web\Apache\lnkrec\core\UserSystem.inc.php on line 50

Warning: mysqli_stmt::bind_result() [function.bind-result]: Number of
bind variables doesn't match number of fields in prepared statement. in
C:\Web\Apache\lnkrec\core\UserSystem.inc.php on line 52

I'm thinking this is really weird since the amount of parameters are
just as many as there should be.

I have tested my MySQL query outside PHP, and it works fine
syntactically.

Futhermore, $stmt->param_count is 0.

The Database class is defined as:
http://nopaste.php-q.net/196448
and therefore seemingly transparent in this case.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36631&edit=1

Reply via email to