Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Basic Insert Error Expected lexical element not found: <identifier> |
Author |
Message |
|
Posted : 2008-07-24 07:37:02 |
I'm working in PHP and using the VB Demo 32 .
Yeah Connection (I test if I have a connection) Insert into Customer ('CompanyName', 'Phone', 'Email') values('adsf', '235632', 'afdsf'); (I print out my insert string) Warning: odbc_exec() [function.odbc-exec]: SQL error: [QODBC] Expected lexical element not found: <identifier>, SQL state 37000 in SQLExecDirect in C:\wamp\www\qb2\example_integration.php on line 10 Nope (Did the insert go through test?)
So, this basic insert statement ...
Insert into Customer ('CompanyName', 'Phone', 'Email') values('adsf', '235632', 'afdsf');
Won't work for me. Any suggestions as to why? It's short and just a test. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2008-07-24 08:25:06 |
It should be:
Insert into Customer ("CompanyName", "Phone", "Email") values('adsf', '235632', 'afdsf');
See: How do I add customers? for more. |
|
|
|
|