Friday, April 22, 2011

PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens

Problem:

PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens


Reason:

The restrictions of PDO to the parameters bound are very strict, so you bind must exactly the same as that present in the query statement. No more parameter can be bound.

No comments:

Post a Comment