SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
kffoods
Posts: 13Questions: 4Answers: 1
I had this working and now can't seem to figure out. Any ideas?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Could you give me a little more information please? Do I need to create, edit or delete a row? Or should it happen when I just load the page?
Also, given its an SQL error, if you can show me the server-side code that would be useful.
Allan
Happens after clicking the "Update" button on new & create.
Here is server side:
Thanks. Similar to your other threads, its the spaces in the field names that is causing the issue.
The SQL statement being executed looks like this:
Using a binding such as
:Customer No
isn't working, nor will it work.If you look in the
Database/Query.php
file there is a private method called_safe_bind
. If you add:to the list of
str_replace
calls, that should fix it.Allan
Great. Will I have to remember this changes when installing a new version of the Editor?
No - I've just added that it to the PHP libraries for Editor. It will be included in the 1.7.4 release .
Allan