Skip to content
Advertisement

Uncaught PDOException: SQLSTATE[HY093] [closed]

I get this erro: Invalid parameter number: number of bound variables does not match number of tokens in C:xampphtdocsPHPtennisronde2-wijziging.php:59

I want to update my data.strong text

Advertisement

Answer

My solution worked but didn’t explain why it did go wrong in the first place. The user dpant explains in the comments why your code snippet was not working.

Credits go to him

dpant:

Most probably the problem with your original code was that you were binding the :speler1 parameter twice (the :speler2 parameter was never bound). This was just a typo in your code. Take a close look at it.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement