Update fails with SQL Error
👻
I'm getting the following error from a document when I hit save :
An error occured in a database query!
Context:
File /tiki-editpage.php
Url /tiki-editpage.php
Query:
update "tiki_pages" set "description"=?, "data"=?, "comment"=?, "lastModif"=?, "version"=?, "user"=?, "ip"=?, "page_size"=? where "pageName"=?
Values:
<...data here ...>
The data looks right and sometimes it will save and sometimes it won't. it would be most helpful if the error trap behind the save operation printed out the message from the database eror because at the moment I am purely guessing to try and figure out what this is. My guess is something in the document text is causing SQL to get it wrong. But without adiquate error messages, it's hard to find.
ciao
Derek.