Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

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

Forum : NEED EXAMPLE TO INSERT FROM PHPSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 NEED EXAMPLE TO INSERT FROM PHP 
 Author   Message 
  Enigma122 
  
 Group: Members 
 Posts: 8 
 Joined: 2007-07-28 
 Profile
 Posted : 2007-07-29 01:18:16

ANY HELP IS COOL

 

THANXZ!!!

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-07-29 10:46:25

Try looking at our sample: DisplaySQL.PHP 

Just replace the default $sSQL statement with your INSERT statement.

There's also a updated version of DisplaySQL.php that can be found at: PHP samples or help?

 

  Top 
  Enigma122 
  
 Group: Members 
 Posts: 8 
 Joined: 2007-07-28 
 Profile
 Posted : 2007-07-30 05:38:27
yap i did that but dosnt works here is the code i used:
error : //ERRROR
ERROR:Warning: odbc_exec() [function.odbc-exec]: SQL error: [QODBC] Expected lexical element not found: <keyword>, SQL state 37000 in SQLExecDirect in C:\AppServ\www\Quickbooks\Insert.php on line 27

$QUERY = "INSERT INTO ItemInventoryAssembly (Name,
                                   IncomeAccountRefListID,
                                   IncomeAccountRefFullName,
                                   COGSAccountRefListID,
                                   COGSAccountRefFullName,
                                   AssetAccountRefListID,
                                   AssetAccountRefFullName)
VALUES ('Renos',
'2B0001-852371171',
'Vendor Refunds',
'80000070-1197725202',
'Cost of Goods Sold',
'8000006F-1197725202',
'Inventory Asset')
";

thankz Tom for all ur help :) 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-07-30 08:09:44
You can't insert into the ItemInventoryAssembly header table, you should be using ItemInventoryAssemblyLine. See: How do I create a Item Assembly (ItemInventoryAssembly)?  

  Top 
  Enigma122 
  
 Group: Members 
 Posts: 8 
 Joined: 2007-07-28 
 Profile
 Posted : 2007-07-30 10:28:05
thank u i goint to try it, is any documentation specially for developer, if this inserts works im going to buy QODBC but i really going to need all posible documentation.

Thank u again Tom  you are very helpfull. for us. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to