Troubleshooting of MySQL errors: Difference between revisions

Jump to navigation Jump to search
m
Line 431: Line 431:


== SQL and Query Errors ==
== SQL and Query Errors ==
=== Caught exception: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined ===
Solutions
* Number of question marks is not matched with the number of query values <ref>[https://stackoverflow.com/questions/10966251/sqlstatehy093-invalid-parameter-number-parameter-was-not-defined php Invalid parameter number: parameter was not defined - Stack Overflow]</ref>
* The array of query values should not be the associative array. Use sequential array!


== Connection and Network Errors ==
== Connection and Network Errors ==

Navigation menu