Hello,

I have had an issue for the past week or so that I cannot find a decent explanation for. I am receiving the following warning when using mysqli to insert a bunch of records into a database...

*Warning*: mysqli_stmt_bind_param() [function.mysqli-stmt-bind-param <http://localhost/function.mysqli-stmt-bind-param>]: Number of variables doesn't match number of parameters in prepared statement in *c:\program files\apache group\Apache\htdocs\prepared.php* on line *21

*Now the machine it's failing on is running PHP 5.1.4 with mysqli API version 5.0.22 but I have used this exact same script (just copied it over) on another machine running PHP 5.2.1 with mysqli API version 5.0.22 querying the same database and it worked without issue, so it is not an issue with the code. Is it the PHP version that is causing the problem? Or where else should I be looking?

Any help would be appreciated as I am really at a loss as to why this works fine on one machine and not on the other... and unfortunately I could not find any explanation anywhere else.

Thanks in advance,
Josh

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to