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 : Driver is very unstableSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Driver is very unstable 
 Author   Message 
  KellyS 
  
 Group: Members 
 Posts: 9 
 Joined: 2007-09-08 
 Profile
 Posted : 2009-01-27 06:02:52
I'm having a problem with the driver.  It shuts down and stops working every third or fourth time I try to use it.  I'm using the web version with the IBiz Web Integrator.  I'm using PHP to access the QODBC driver.

I don't even know where to start to troubleshoot why it would work one day and then stop working the next.

Please help.

Kelly 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-27 10:10:09
Well for starters the iBiz Remote Connector and QODBC Remote Connector for all versions up to QODBC v8 only supports desktop applications. For Windows Services and applications that call through a Windows Service (like all web applications) you're mean't to use the QODBC Server Edition and QODBC DCOM Server as per: How do I manually setup the QODBC DCOM Servers on Windows XP Pro and Windows 2003 Server?  

  Top 
  KellyS 
  
 Group: Members 
 Posts: 9 
 Joined: 2007-09-08 
 Profile
 Posted : 2009-01-27 11:03:22
I am using Apache and PHP.  Do you have directions for setting up the DCOM servers for use with Apache and PHP? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-28 08:32:41

The above link applies and for PHP you may need to set the Idenity to be the launching user to get all the tests to run successfully. Here is a test program for you:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>QODBC PHP Script To Display SQL Results</title>
</head>
<body topmargin="3" leftmargin="3" marginheight="0" marginwidth="0" bgcolor="#ffffff" link="#000066" vlink="#000000" alink="#0000ff" text="#000000">

 <table >
    <tr>
        <td>
            <table border="2" bordercolor="black" bgcolor="white" cellpadding="5" cellspacing="0">
                <thead>
                    <caption align="top">QODBC PHP Script To Display SQL Results</caption>
                    <tr>
                        <th>Row</th>
       <?php
       set_time_limit(120);
       
       #Connect to a System DSN "QuickBooks Data" with no user or password
       $oConnect = odbc_connect("QuickBooks Data", "", "");
       
       #Set the SQL Statement
       $sSQL = "SELECT TOP 50 ListID, FullName, CompanyName FROM Customer";
       
       #Perform the query
       $oResult = odbc_exec($oConnect, $sSQL);
       $lFldCnt = 0;
       $lFieldCount = odbc_num_fields($oResult);
       while ($lFldCnt < $lFieldCount)
       {
        $lFldCnt++;
        $sFieldName = odbc_field_name($oResult, $lFldCnt);
        echo '<th> ' . $sFieldName  . ' </th>';
       }
       echo '
                    </tr>
                </thead>
                <tbody>
     ';
     $lRecCnt = 0;
     #Fetch the data from the database
     while(odbc_fetch_row($oResult)) {
      $lRecCnt++;
      echo'                    <tr>';
      echo' <td> ' .$lRecCnt. ' </td> ';
      $lFldCnt = 0;
      $lFieldCount = odbc_num_fields($oResult);
      while ($lFldCnt < $lFieldCount) {
       $lFldCnt++;
       $sFieldValue = trim(odbc_result($oResult, $lFldCnt));
       If ($sFieldValue == "") {
        echo '<td> </td>';
       }
       else {
        echo ' <td valign=\"Top\"> '. $sFieldValue. ' </td>';
       }
      }
      echo ' </tr>';
     }
     #Close the connection
     odbc_close($oConnect);
     echo '
                </tbody>
                <tfoot>
      <caption align=\"bottom\">Results of: '.$sSQL.'</caption>
     
                </tfoot> ';
    ?>
            </table>
        </td>
    </tr>
</table>
</body>
</html>

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to