This same error 2031 can be issued when one bind two values with the same parameter name, like in:
$sth->bindValue(':colour', 'blue');
$sth->bindValue(':colour', 'red');
..so, beware.
More Related Contents:
- PHP – Using PDO with IN clause array
- pdo prepared statements with wildcards
- Can I use a PDO prepared statement to bind an identifier (a table or field name) or a syntax keyword?
- Insert multiple rows with PDO prepared statements
- Replacing mysql_* functions with PDO and prepared statements
- PDOstatement (MySQL): inserting value 0 into a bit(1) field results in 1 written in table
- Calling stored procedure with Out parameter using PDO
- When *not* to use prepared statements?
- Use of PDO in classes [duplicate]
- Error while using PDO prepared statements and LIMIT in query [duplicate]
- PHP PDO and Mysql [closed]
- PDO Fetch statement only retrieves first column
- How to properly set up a PDO connection
- PHP PDO prepared statements
- PDO MySQL: Use PDO::ATTR_EMULATE_PREPARES or not?
- Example of how to use bind_result vs get_result
- PDO Prepared Inserts multiple rows in single query
- Why I am getting Cannot pass parameter 2 by reference error when I am using bindParam with a constant value?
- mysql PDO how to bind LIKE
- How do I use pdo’s prepared statement for order by and limit clauses?
- How to install pdo driver in php docker image?
- MySQL retrieve variable from Stored Procedure in PHP PDO
- Understanding pdo mysql transactions
- Laravel 5.4 on PHP 7.0: PDO Exception – Could not find driver (MySQL)
- Using LIKE in bindParam for a MySQL PDO Query [duplicate]
- How to handle PDO exceptions [duplicate]
- php artisan migrate throwing [PDO Exception] Could not find driver – Using Laravel
- PDO and MySQL Fulltext searches
- Using Prepared Statement, how I return the id of the inserted row?
- Is a BLOB converted using the current/default charset in MySQL?