Re: wierd error with MDB2 on a simple query
| From: | brian | Date: | Thu, 05 Apr 2007 13:48:22 +0000 |
| Subject: | Re: wierd error with MDB2 on a simple query | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27012@lists.php.net to get a copy of this message | ||
T A wrote:
I get this error with getDebugInfo() _doQuery: [Error message: Could not execute statement] [Last executed query: ] [Native code: 1064] [Native message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] The query : UPDATE users SET name='ne13', address='adess', city='city13', state='state13', country='usa13', zip='zip13', date='1984-8-19' WHERE user_id=1941 However runs Ok in phpmyadmin. Perhaps MDB2 adds something to the query which doesn't show?How are you constructing the query? Prepared statement? Variables appended to string? If the latter, what do you see when you echo the string to the browser? If the former, what do you see when you dump the prepared object?