<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: QuickBase PHP API Examples</title>
	<atom:link href="http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 24 Apr 2012 05:24:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mike Davis</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-13455</link>
		<dc:creator>Mike Davis</dc:creator>
		<pubDate>Mon, 23 Apr 2012 19:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-13455</guid>
		<description>Joshua,

Thank you - this page is still paying dividends.

There is a bug(?) in the QuickBase API that your do_query code above uncovers.  It turns out using EX vs. ex in a query yields different results.  What we demonstrated repeatedly is that EX is an exact match whereas ex acts like CT.

We demonstrated this by making direct calls via url to API_DoQuery so neither your sample nor quickbase.php code is at issue. 
Hope it helps anyone else encountering this problem.,

-Mike</description>
		<content:encoded><![CDATA[<p>Joshua,</p>
<p>Thank you &#8211; this page is still paying dividends.</p>
<p>There is a bug(?) in the QuickBase API that your do_query code above uncovers.  It turns out using EX vs. ex in a query yields different results.  What we demonstrated repeatedly is that EX is an exact match whereas ex acts like CT.</p>
<p>We demonstrated this by making direct calls via url to API_DoQuery so neither your sample nor quickbase.php code is at issue.<br />
Hope it helps anyone else encountering this problem.,</p>
<p>-Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua McGinnis</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-13360</link>
		<dc:creator>Joshua McGinnis</dc:creator>
		<pubDate>Fri, 20 Apr 2012 17:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-13360</guid>
		<description>Hi Alex - I&#039;m about to leave for vacation, but email me and I will help you when I return: joshua@mcginn.is</description>
		<content:encoded><![CDATA[<p>Hi Alex &#8211; I&#8217;m about to leave for vacation, but email me and I will help you when I return: <a href="mailto:joshua@mcginn.is">joshua@mcginn.is</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Pagan-Ortiz</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-13359</link>
		<dc:creator>Alex Pagan-Ortiz</dc:creator>
		<pubDate>Fri, 20 Apr 2012 17:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-13359</guid>
		<description>$query = array(
			array(
				&quot;fid&quot;	=&gt; $fieldfid,
				&quot;ev&quot;	=&gt; &quot;EX&quot;,
				&quot;cri&quot;	=&gt; value
				),
			array(
				&quot;ao&quot;	=&gt; &#039;AND&#039;,
				&quot;fid&quot;	=&gt; $field2_fid,
				&quot;ev&quot;	=&gt; &quot;EX&quot;,
				&quot;cri&quot;	=&gt; value
				),
			array(
				&quot;ao&quot;	=&gt;&#039;AND&#039;,
				&quot;fid&quot;	=&gt; $field3_fid,
				&quot;ev&quot;	=&gt; &quot;EX&quot;,
				&quot;cri&quot;	=&gt; value	
			)
			);
		$results = $qbconnect-&gt;do_query($query,&#039;&#039;,&#039;&#039;,2.3.5.7.9);</description>
		<content:encoded><![CDATA[<p>$query = array(<br />
			array(<br />
				&#8220;fid&#8221;	=&gt; $fieldfid,<br />
				&#8220;ev&#8221;	=&gt; &#8220;EX&#8221;,<br />
				&#8220;cri&#8221;	=&gt; value<br />
				),<br />
			array(<br />
				&#8220;ao&#8221;	=&gt; &#8216;AND&#8217;,<br />
				&#8220;fid&#8221;	=&gt; $field2_fid,<br />
				&#8220;ev&#8221;	=&gt; &#8220;EX&#8221;,<br />
				&#8220;cri&#8221;	=&gt; value<br />
				),<br />
			array(<br />
				&#8220;ao&#8221;	=&gt;&#8217;AND&#8217;,<br />
				&#8220;fid&#8221;	=&gt; $field3_fid,<br />
				&#8220;ev&#8221;	=&gt; &#8220;EX&#8221;,<br />
				&#8220;cri&#8221;	=&gt; value<br />
			)<br />
			);<br />
		$results = $qbconnect-&gt;do_query($query,&#8221;,&#8221;,2.3.5.7.9);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Pagan-Ortiz</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-13358</link>
		<dc:creator>Alex Pagan-Ortiz</dc:creator>
		<pubDate>Fri, 20 Apr 2012 17:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-13358</guid>
		<description>Hi Johsua,
I wrote a php script where I run queries that retrieve a single record from quickbase. Like,
$qbconnect = new QuickBase(username,password,true,$QB_Table);
	$queries = array(
		array(
			&quot;fid&quot;	=&gt; $QB_Table_field_fid,
			&quot;ev&quot;	=&gt; &quot;EX&quot;,
			&quot;cri&quot;	=&gt; $value )
			);
	$results = $qbconnect-&gt;do_query($queries,&#039;&#039;,&#039;&#039;,$QBfieldvalue1.&#039;.&#039;. $QBFieldValue2.&#039;.&#039;.$QBFieldValue3.&#039;.&#039;.$QBFieldValue4.&#039;.&#039;.$QBFieldValue5);
	if( $results ){
		$record = $results-&gt;table-&gt;records-&gt;record-&gt;f;
		If( count($record) &gt; 0){
			$field1 	= $record[ 0 ];
			$field2	= $record[ 1 ];
			$field3	= $record[ 2 ];
			$field4	= $record[ 3 ];
			$field5	= $record[ 4 ];
			$return = array( $field1, $field2, $field3, $field4, $field5 );
		}
	}

But now I need to modify the query to retrieve multiple records, the instructions to parse a single record to access every single field value is like,
	$record = $results-&gt;table-&gt;records-&gt;record-&gt;f;
Then I access every element of the array with an index.
Do you know or have an example that allows me to retrieve and access every field value from multiple records retrieved from quickbase?
Thank you,
Alex</description>
		<content:encoded><![CDATA[<p>Hi Johsua,<br />
I wrote a php script where I run queries that retrieve a single record from quickbase. Like,<br />
$qbconnect = new QuickBase(username,password,true,$QB_Table);<br />
	$queries = array(<br />
		array(<br />
			&#8220;fid&#8221;	=&gt; $QB_Table_field_fid,<br />
			&#8220;ev&#8221;	=&gt; &#8220;EX&#8221;,<br />
			&#8220;cri&#8221;	=&gt; $value )<br />
			);<br />
	$results = $qbconnect-&gt;do_query($queries,&#8221;,&#8221;,$QBfieldvalue1.&#8217;.&#8217;. $QBFieldValue2.&#8217;.&#8217;.$QBFieldValue3.&#8217;.&#8217;.$QBFieldValue4.&#8217;.&#8217;.$QBFieldValue5);<br />
	if( $results ){<br />
		$record = $results-&gt;table-&gt;records-&gt;record-&gt;f;<br />
		If( count($record) &gt; 0){<br />
			$field1 	= $record[ 0 ];<br />
			$field2	= $record[ 1 ];<br />
			$field3	= $record[ 2 ];<br />
			$field4	= $record[ 3 ];<br />
			$field5	= $record[ 4 ];<br />
			$return = array( $field1, $field2, $field3, $field4, $field5 );<br />
		}<br />
	}</p>
<p>But now I need to modify the query to retrieve multiple records, the instructions to parse a single record to access every single field value is like,<br />
	$record = $results-&gt;table-&gt;records-&gt;record-&gt;f;<br />
Then I access every element of the array with an index.<br />
Do you know or have an example that allows me to retrieve and access every field value from multiple records retrieved from quickbase?<br />
Thank you,<br />
Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zied Ellouze</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-12119</link>
		<dc:creator>Zied Ellouze</dc:creator>
		<pubDate>Fri, 09 Mar 2012 16:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-12119</guid>
		<description>Hello
I use the php api for QuickBase
and I look how I can make a request for selection according to multiple criteria
as this example
where field1=&quot;x&quot; and (field2=&quot;y&quot; or field3=&quot;z&quot;)
thank you</description>
		<content:encoded><![CDATA[<p>Hello<br />
I use the php api for QuickBase<br />
and I look how I can make a request for selection according to multiple criteria<br />
as this example<br />
where field1=&#8221;x&#8221; and (field2=&#8221;y&#8221; or field3=&#8221;z&#8221;)<br />
thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua McGinnis</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-8623</link>
		<dc:creator>Joshua McGinnis</dc:creator>
		<pubDate>Thu, 10 Nov 2011 13:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-8623</guid>
		<description>Hi Alex,

I would run a phpinfo() from within the same environment and make sure curl is enabled. 

The curl-init method is located at the top of the QuickBase SDK class.

- Joshua</description>
		<content:encoded><![CDATA[<p>Hi Alex,</p>
<p>I would run a phpinfo() from within the same environment and make sure curl is enabled. </p>
<p>The curl-init method is located at the top of the QuickBase SDK class.</p>
<p>- Joshua</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Pagan-Ortiz</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-8622</link>
		<dc:creator>Alex Pagan-Ortiz</dc:creator>
		<pubDate>Thu, 10 Nov 2011 13:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-8622</guid>
		<description>Hi Joshua,

I am evaluating a PHP editor called NuSphere 6.1 and I am running some php scripts with this product and I am getting the following error from the QuickBase api class.

Fatal error: Call to undefined function curl_init() in Z:\APO\qb-arh-php-works\QuickBaseClient.php on line 127

However,  when I run the same scripts from the browser it runs fine without showing the error.

Do you know where is the curl-init method located?  Any advise,

thank you,

Alex</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>I am evaluating a PHP editor called NuSphere 6.1 and I am running some php scripts with this product and I am getting the following error from the QuickBase api class.</p>
<p>Fatal error: Call to undefined function curl_init() in Z:\APO\qb-arh-php-works\QuickBaseClient.php on line 127</p>
<p>However,  when I run the same scripts from the browser it runs fine without showing the error.</p>
<p>Do you know where is the curl-init method located?  Any advise,</p>
<p>thank you,</p>
<p>Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua McGinnis</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-8556</link>
		<dc:creator>Joshua McGinnis</dc:creator>
		<pubDate>Thu, 03 Nov 2011 14:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-8556</guid>
		<description>Hi Alex - you can&#039;t just echo $results since the result will be a SimpleXML Object. Try var_dump($results); instead and see if it contains any data.</description>
		<content:encoded><![CDATA[<p>Hi Alex &#8211; you can&#8217;t just echo $results since the result will be a SimpleXML Object. Try var_dump($results); instead and see if it contains any data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Pagan-Ortiz</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-8554</link>
		<dc:creator>Alex Pagan-Ortiz</dc:creator>
		<pubDate>Thu, 03 Nov 2011 13:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-8554</guid>
		<description>Hi Joshua,

For the do_query example, I need to retrieve a field from a record based on a criteria.  

Something like “Select accountNo from Transaction where billingNo = some value

I have he following code but is not showing any output… 

  $line = fgetcsv($fp);
    
    $ArhBillingNumber = $line[1];
    
    $query= array(
        array(&#039;fid&#039; =&gt; &#039;10&#039;,
               &#039;ev&#039; =&gt; &#039;ex&#039;,
		 &#039;cri&#039; =&gt; $ArhBillingNumber));

    $results = quickbase-&gt;do_query($query,&#039;&#039;,&#039;&#039;,&#039;11&#039;);

    
    echo $results.&#039;&#039;;

Please Advise,

Alex</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>For the do_query example, I need to retrieve a field from a record based on a criteria.  </p>
<p>Something like “Select accountNo from Transaction where billingNo = some value</p>
<p>I have he following code but is not showing any output… </p>
<p>  $line = fgetcsv($fp);</p>
<p>    $ArhBillingNumber = $line[1];</p>
<p>    $query= array(<br />
        array(&#8216;fid&#8217; =&gt; &#8217;10&#8242;,<br />
               &#8216;ev&#8217; =&gt; &#8216;ex&#8217;,<br />
		 &#8216;cri&#8217; =&gt; $ArhBillingNumber));</p>
<p>    $results = quickbase-&gt;do_query($query,&#8221;,&#8221;,&#8217;11&#8242;);</p>
<p>    echo $results.&#8221;;</p>
<p>Please Advise,</p>
<p>Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-8446</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Mon, 24 Oct 2011 14:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-8446</guid>
		<description>Hi Mery, I ran into the same issue. I was reading the framework and you can add a fourth element to the second or subsequent queries to add AND/OR... 

$queries = array(
            array(
                &#039;fid&#039;   =&gt; &#039;16&#039;,
                &#039;ev&#039;    =&gt; &#039;ex&#039;,
                &#039;cri&#039;   =&gt; &#039;eve&#039;)
            ),
			 array(
                &#039;fid&#039;   =&gt; &#039;19&#039;,
                &#039;ev&#039;    =&gt; &#039;ex&#039;,
                &#039;cri&#039;   =&gt; &#039;manager&#039;,
				&#039;ao&#039;	=&gt; &#039;AND&#039;
			)
        );</description>
		<content:encoded><![CDATA[<p>Hi Mery, I ran into the same issue. I was reading the framework and you can add a fourth element to the second or subsequent queries to add AND/OR&#8230; </p>
<p>$queries = array(<br />
            array(<br />
                &#8216;fid&#8217;   =&gt; &#8217;16&#8242;,<br />
                &#8216;ev&#8217;    =&gt; &#8216;ex&#8217;,<br />
                &#8216;cri&#8217;   =&gt; &#8216;eve&#8217;)<br />
            ),<br />
			 array(<br />
                &#8216;fid&#8217;   =&gt; &#8217;19&#8242;,<br />
                &#8216;ev&#8217;    =&gt; &#8216;ex&#8217;,<br />
                &#8216;cri&#8217;   =&gt; &#8216;manager&#8217;,<br />
				&#8216;ao&#8217;	=&gt; &#8216;AND&#8217;<br />
			)<br />
        );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sagar</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-6405</link>
		<dc:creator>Sagar</dc:creator>
		<pubDate>Fri, 10 Jun 2011 13:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-6405</guid>
		<description>Hi Joshua,

Can u please give us an example to fetch data from multiple tables in quickbase.

Thanks,
-Sagar.</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>Can u please give us an example to fetch data from multiple tables in quickbase.</p>
<p>Thanks,<br />
-Sagar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mery</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-6087</link>
		<dc:creator>Mery</dc:creator>
		<pubDate>Thu, 12 May 2011 22:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-6087</guid>
		<description>for the do_query example, can you give an example where i use AND for the criteria?

let&#039;s say where user is &#039;eve&#039; AND &#039;role is &#039;manager&#039;</description>
		<content:encoded><![CDATA[<p>for the do_query example, can you give an example where i use AND for the criteria?</p>
<p>let&#8217;s say where user is &#8216;eve&#8217; AND &#8216;role is &#8216;manager&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-5979</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 06 May 2011 14:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-5979</guid>
		<description>It turned out that something was misspelled in the PHP wrapper code. I&#039;m sorry I don&#039;t exactly recall what it was right now...For those of you that use this function call, be sure to double-check the api call spellings, etc.</description>
		<content:encoded><![CDATA[<p>It turned out that something was misspelled in the PHP wrapper code. I&#8217;m sorry I don&#8217;t exactly recall what it was right now&#8230;For those of you that use this function call, be sure to double-check the api call spellings, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-4589</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 08 Mar 2011 16:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-4589</guid>
		<description>Can you post an example of how to use the import_from_csv function? I can&#039;t seem to get it to work. Thanks! Keep up the great work!</description>
		<content:encoded><![CDATA[<p>Can you post an example of how to use the import_from_csv function? I can&#8217;t seem to get it to work. Thanks! Keep up the great work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua McGinnis</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-3669</link>
		<dc:creator>Joshua McGinnis</dc:creator>
		<pubDate>Thu, 17 Feb 2011 18:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-3669</guid>
		<description>Hi Wilfredo,

I could building something pretty easily that would allow Wordpress / QuickBase Integration. 

What in particular would you want the plugin to do?

- Joshua</description>
		<content:encoded><![CDATA[<p>Hi Wilfredo,</p>
<p>I could building something pretty easily that would allow WordPress / QuickBase Integration. </p>
<p>What in particular would you want the plugin to do?</p>
<p>- Joshua</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-3668</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Thu, 17 Feb 2011 18:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-3668</guid>
		<description>Hi Josh, great work.

Are you aware of any work been done to integrate Wordpress and Quickbase?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Josh, great work.</p>
<p>Are you aware of any work been done to integrate WordPress and Quickbase?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-1774</link>
		<dc:creator>Chuck</dc:creator>
		<pubDate>Tue, 07 Dec 2010 23:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-1774</guid>
		<description>Gen_results_table is working but do_query is not. Can you please throw out a few things I need to double-check? DBID is correct and I&#039;m connecting cause gen_results_table displays fine. I get no xml response with do_query.</description>
		<content:encoded><![CDATA[<p>Gen_results_table is working but do_query is not. Can you please throw out a few things I need to double-check? DBID is correct and I&#8217;m connecting cause gen_results_table displays fine. I get no xml response with do_query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-1124</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 16 Oct 2010 17:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-1124</guid>
		<description>Josh, In the $queries array can I add an slist parameter? Or how can I sort the query results? Thanks!</description>
		<content:encoded><![CDATA[<p>Josh, In the $queries array can I add an slist parameter? Or how can I sort the query results? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua McGinnis</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-961</link>
		<dc:creator>Joshua McGinnis</dc:creator>
		<pubDate>Fri, 24 Sep 2010 14:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-961</guid>
		<description>This is what the XML in your request should look like:
Here&#039;s what the XML of the request should look like:

POST https://quickbase.com/db/6mpjiez8?
Content-Type: application/xml
Content-Length:
QUICKBASE-ACTION:API_AddUserToRole

&lt;qdbapi&gt;
&lt;ticket&gt;2_bdh78chd4_dpsx_b_dnbypa8d372j5rb6vt6kfdx7ty25&lt;/ticket&gt;
&lt;apptoken&gt;dtmd897bfsw85bb6bneceb6wnze3&lt;/apptoken&gt;
&lt;udata&gt;mydata&lt;/udata&gt;
&lt;field name=&quot;email&quot;&gt;cucamonga@chuck.com&lt;/field&gt;
&lt;field name=&quot;assigned_number&quot;&gt;291&lt;/field&gt;
&lt;field name=&quot;text&quot;&gt;OK Corral&lt;/field&gt;
&lt;field name=&quot;telephone&quot;&gt;650-345-8768.3456&lt;/field&gt;
&lt;field fid=&quot;22&quot; filename=&quot;Model_T.jpg&quot;&gt;
8D6AAAOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhCSU0EBgAAAAAABwAEAAAAAQEA
4AJ0ZpbGUgd3JpdHRlbiBieSBBZG9iZSBQaG90b3Nob3CoIDQuMAD/7gAOQWRvYmUAZAAAAAAB
9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDAwMDAwMDAwMDAwMDAwM
DAwMDAwMDAwMDAwMAQcHBw0MDRgQEBgUDg4OFBQODg4OFBEMDAwMDBERDAwMDAwMEQwMDAwMDAw
MDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAEsAWQDAREAAhEBAxEB/90ABAAt/
8QBogAAAAcBAQEBAQAAAAAAAAAABAUDAgYBAAcICQoLAQACAgMBAQEBAQAAAAAAAAABAAIDBAUG
BwgJCgsQAAIBAwMCBAIGBwMEAgYCcwECAxEEAAUhEjFBUQYTYSJxgRQykaEHFbFCI8FS0eEzFmL
wJHKC8SVDNFOSorJjc8I1RCeTo7M2F1RkdMPS4ggmgwkKGBmElEVGpLRW01UoGvLj88TU5PRldY
WVpbXF1eX1ZnaGlqa2xtbm9jdHV2d3h5ent8fX5/
c4SFhoeIiYqLjI2Oj4KTlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+hEAAgIBAgMFBQQFBgQIA
wNtAQACEQMEIRIxQQVRE2EiBnGBkTKhsfAUwdHhI0IVUmJy8TMkNEOCFpJTJaJjssIHc9I14kSD
F1STCAkKGBkmNkUaJ2R0VTfyo7PDKCnT4/
OElKS0xNTk9GV1hZWltcXV5fVGVmZ2hpamtsbW5vZHV2d3h5ent8fX5/
c4SFhoeIiYqLjI2Oj4OUlZaXmJmam5ydnp+So6SlpqeoqaqrrK2ur6/
9oADAMBAAIRAxEAPwCK6Bd3Ea3CaXJDbxS2wLSSVZGVNvTmj+NTGSGIdVk+1yzFxkg0WmpdEHpc
k9vO2n21xBP+huF1ajklHWcEyxFmQer6a+or8x8CumWSx0b7mVSTO2S3mRoNOkMWnXUTGPkP3QV
2EkXpcOfAMF/Y/axsmVDqxromtzb2/
r2b+qpjjAgmSTkSY0XkpJ2J+Mslar8OZHhjkvAsv3sLp4UmuYxMPVS0ujGpkjNAKcWIDpKvwy/
Bz4rz+3+8wyxBmAk1xJDJr2l2c6xy2mlwT31xAw5Rx8jxjJ/
jXJbKLRGnfbm6foz1Dy6cPV9RvV+38Xp8vtV/3bz4YQjdZ8X1j9r67/svXp6n/UP6X/
PH1P8AizAl/9kA
&lt;/field&gt;
&lt;/qdbapi&gt;

Here&#039;s a PHP example:

  // any file upload?
  if($_FILES[&#039;_fid_21&#039;][&#039;name&#039;]) {
    $file_name  = $_FILES[&#039;_fid_21&#039;][&#039;name&#039;];
    $f_tmp_name  = $_FILES[&#039;_fid_21&#039;][&#039;tmp_name&#039;];
    $file_size  = $_FILES[&#039;_fid_21&#039;][&#039;size&#039;];
    
    $fh = fopen($f_tmp_name, &#039;r&#039;);
    $content = fread($fh, $file_size);
    $content = base64_encode($content);
    fclose($fh);
    
    $uploads = array( array(&#039;fid&#039;    =&gt;  &#039;21&#039;,
                &#039;filename&#039;  =&gt;  $file_name,
                &#039;value&#039;    =&gt;  $content) );
  }

  // add activity record
  $quickbase = new QuickBase($username,$password,true, $dbID);
  if ($quickbase) {
    $payload = array(array(
               &#039;fid&#039;   =&gt;  some_field_id,
              &#039;value&#039;  =&gt;  some_val),
             array(
               &#039;fid&#039;  =&gt;  some_field_id,
              &#039;value&#039;  =&gt;  some_val)
          );


      $resp = $quickbase-&gt;add_record($payload, $uploads);</description>
		<content:encoded><![CDATA[<p>This is what the XML in your request should look like:<br />
Here&#8217;s what the XML of the request should look like:</p>
<p>POST <a href="https://quickbase.com/db/6mpjiez8" rel="nofollow">https://quickbase.com/db/6mpjiez8</a>?<br />
Content-Type: application/xml<br />
Content-Length:<br />
QUICKBASE-ACTION:API_AddUserToRole</p>
<p><qdbapi><br />
<ticket>2_bdh78chd4_dpsx_b_dnbypa8d372j5rb6vt6kfdx7ty25</ticket><br />
<apptoken>dtmd897bfsw85bb6bneceb6wnze3</apptoken><br />
<udata>mydata</udata><br />
<field name="email"><a href="mailto:cucamonga@chuck.com">cucamonga@chuck.com</a></field><br />
<field name="assigned_number">291</field><br />
<field name="text">OK Corral</field><br />
<field name="telephone">650-345-8768.3456</field><br />
<field fid="22" filename="Model_T.jpg"><br />
8D6AAAOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhCSU0EBgAAAAAABwAEAAAAAQEA<br />
4AJ0ZpbGUgd3JpdHRlbiBieSBBZG9iZSBQaG90b3Nob3CoIDQuMAD/7gAOQWRvYmUAZAAAAAAB<br />
9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDAwMDAwMDAwMDAwMDAwM<br />
DAwMDAwMDAwMDAwMAQcHBw0MDRgQEBgUDg4OFBQODg4OFBEMDAwMDBERDAwMDAwMEQwMDAwMDAw<br />
MDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAEsAWQDAREAAhEBAxEB/90ABAAt/<br />
8QBogAAAAcBAQEBAQAAAAAAAAAABAUDAgYBAAcICQoLAQACAgMBAQEBAQAAAAAAAAABAAIDBAUG<br />
BwgJCgsQAAIBAwMCBAIGBwMEAgYCcwECAxEEAAUhEjFBUQYTYSJxgRQykaEHFbFCI8FS0eEzFmL<br />
wJHKC8SVDNFOSorJjc8I1RCeTo7M2F1RkdMPS4ggmgwkKGBmElEVGpLRW01UoGvLj88TU5PRldY<br />
WVpbXF1eX1ZnaGlqa2xtbm9jdHV2d3h5ent8fX5/<br />
c4SFhoeIiYqLjI2Oj4KTlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+hEAAgIBAgMFBQQFBgQIA<br />
wNtAQACEQMEIRIxQQVRE2EiBnGBkTKhsfAUwdHhI0IVUmJy8TMkNEOCFpJTJaJjssIHc9I14kSD<br />
F1STCAkKGBkmNkUaJ2R0VTfyo7PDKCnT4/<br />
OElKS0xNTk9GV1hZWltcXV5fVGVmZ2hpamtsbW5vZHV2d3h5ent8fX5/<br />
c4SFhoeIiYqLjI2Oj4OUlZaXmJmam5ydnp+So6SlpqeoqaqrrK2ur6/<br />
9oADAMBAAIRAxEAPwCK6Bd3Ea3CaXJDbxS2wLSSVZGVNvTmj+NTGSGIdVk+1yzFxkg0WmpdEHpc<br />
k9vO2n21xBP+huF1ajklHWcEyxFmQer6a+or8x8CumWSx0b7mVSTO2S3mRoNOkMWnXUTGPkP3QV<br />
2EkXpcOfAMF/Y/axsmVDqxromtzb2/<br />
r2b+qpjjAgmSTkSY0XkpJ2J+Mslar8OZHhjkvAsv3sLp4UmuYxMPVS0ujGpkjNAKcWIDpKvwy/<br />
Bz4rz+3+8wyxBmAk1xJDJr2l2c6xy2mlwT31xAw5Rx8jxjJ/<br />
jXJbKLRGnfbm6foz1Dy6cPV9RvV+38Xp8vtV/3bz4YQjdZ8X1j9r67/svXp6n/UP6X/<br />
PH1P8AizAl/9kA<br />
</field><br />
</qdbapi></p>
<p>Here&#8217;s a PHP example:</p>
<p>  // any file upload?<br />
  if($_FILES['_fid_21']['name']) {<br />
    $file_name  = $_FILES['_fid_21']['name'];<br />
    $f_tmp_name  = $_FILES['_fid_21']['tmp_name'];<br />
    $file_size  = $_FILES['_fid_21']['size'];</p>
<p>    $fh = fopen($f_tmp_name, &#8216;r&#8217;);<br />
    $content = fread($fh, $file_size);<br />
    $content = base64_encode($content);<br />
    fclose($fh);</p>
<p>    $uploads = array( array(&#8216;fid&#8217;    =>  &#8217;21&#8242;,<br />
                &#8216;filename&#8217;  =>  $file_name,<br />
                &#8216;value&#8217;    =>  $content) );<br />
  }</p>
<p>  // add activity record<br />
  $quickbase = new QuickBase($username,$password,true, $dbID);<br />
  if ($quickbase) {<br />
    $payload = array(array(<br />
               &#8216;fid&#8217;   =>  some_field_id,<br />
              &#8216;value&#8217;  =>  some_val),<br />
             array(<br />
               &#8216;fid&#8217;  =>  some_field_id,<br />
              &#8216;value&#8217;  =>  some_val)<br />
          );</p>
<p>      $resp = $quickbase->add_record($payload, $uploads);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mandm</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-960</link>
		<dc:creator>mandm</dc:creator>
		<pubDate>Fri, 24 Sep 2010 13:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-960</guid>
		<description>Hi Joshua, thanks for the nice wrapper, i wanted to know if you have some examples for the images uploads, that would be a great help. I have been trying it for a while now, but even though i get success on the upload, but the image does not show up in qb database. can you please post some examples of it?</description>
		<content:encoded><![CDATA[<p>Hi Joshua, thanks for the nice wrapper, i wanted to know if you have some examples for the images uploads, that would be a great help. I have been trying it for a while now, but even though i get success on the upload, but the image does not show up in qb database. can you please post some examples of it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-802</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 10 Sep 2010 18:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-802</guid>
		<description>I added some code to my wrapper to use the API_UserRoles api call. I needed to simulate a user dropdown box - perhaps someone will find this useful.

QB Wrapper Code Addition:

 public function user_roles() {
  if($this-&gt;xml) {
   $xml_packet = new SimpleXMLElement(&#039;&#039;);
   $xml_packet-&gt;addChild(&#039;ticket&#039;,$this-&gt;ticket);
   if ($this-&gt;app_token)
      $xml_packet-&gt;addChild(&#039;apptoken&#039;, $this-&gt;app_token);
   $xml_packet = $xml_packet-&gt;asXML();
   $response = $this-&gt;transmit($xml_packet, &#039;API_UserRoles&#039;);
  }

  if($response) {
   return $response;
  }
  return false;
}

In my main php file, I use this to call the new function:
$results = $quickbase-&gt;user_roles();

$results will contain an array of all of the users in the database.</description>
		<content:encoded><![CDATA[<p>I added some code to my wrapper to use the API_UserRoles api call. I needed to simulate a user dropdown box &#8211; perhaps someone will find this useful.</p>
<p>QB Wrapper Code Addition:</p>
<p> public function user_roles() {<br />
  if($this-&gt;xml) {<br />
   $xml_packet = new SimpleXMLElement(&#8221;);<br />
   $xml_packet-&gt;addChild(&#8216;ticket&#8217;,$this-&gt;ticket);<br />
   if ($this-&gt;app_token)<br />
      $xml_packet-&gt;addChild(&#8216;apptoken&#8217;, $this-&gt;app_token);<br />
   $xml_packet = $xml_packet-&gt;asXML();<br />
   $response = $this-&gt;transmit($xml_packet, &#8216;API_UserRoles&#8217;);<br />
  }</p>
<p>  if($response) {<br />
   return $response;<br />
  }<br />
  return false;<br />
}</p>
<p>In my main php file, I use this to call the new function:<br />
$results = $quickbase-&gt;user_roles();</p>
<p>$results will contain an array of all of the users in the database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven The Nurse</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-756</link>
		<dc:creator>Steven The Nurse</dc:creator>
		<pubDate>Thu, 02 Sep 2010 16:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-756</guid>
		<description>Hey Josh, great work! i&#039;m trying to get member sign up and quickbooks to go together. Please feel free to call me...
Steven (305)964-6398</description>
		<content:encoded><![CDATA[<p>Hey Josh, great work! i&#8217;m trying to get member sign up and quickbooks to go together. Please feel free to call me&#8230;<br />
Steven (305)964-6398</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wilfredo</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-80</link>
		<dc:creator>Wilfredo</dc:creator>
		<pubDate>Tue, 06 Jul 2010 23:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-80</guid>
		<description>Hi Joshua:

First of all, thank you for creating this QuickBase wrapper. I&#039;ve been using it to add and search records and all works great.

Today I need to update a record and I&#039;m having difficulty achieving this task. I&#039;m able to search &amp; retrieve the record; but when I call the $quickbase-&gt;edit_record($fields); method I&#039;m getting an error it doesn&#039;t update the database.

Where/How do I tell it which record to update?

Thank you in advance for your help.</description>
		<content:encoded><![CDATA[<p>Hi Joshua:</p>
<p>First of all, thank you for creating this QuickBase wrapper. I&#8217;ve been using it to add and search records and all works great.</p>
<p>Today I need to update a record and I&#8217;m having difficulty achieving this task. I&#8217;m able to search &amp; retrieve the record; but when I call the $quickbase-&gt;edit_record($fields); method I&#8217;m getting an error it doesn&#8217;t update the database.</p>
<p>Where/How do I tell it which record to update?</p>
<p>Thank you in advance for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-79</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 09 Jun 2010 16:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-79</guid>
		<description>It seems like maybe Quickbase has updated their API and this wrapper is out of date?  For instance, I tried doing a simple $quickbase-&gt;get_schema and got an error 24 (&quot;no app token&quot;).  If you go to the docs page you link to, they point you to new docs.  Those docs say you must include an app token AND ticket on most API calls.

Changing line 884 to:
$url_string = $this-&gt;qb_ssl . $this-&gt;db_id. &quot;?act=API_GetSchema&amp;ticket=&quot;. $this-&gt;ticket . &quot;&amp;apptoken=&quot; . $this-&gt;app_token;

And also adding this line to the XML version of the call:
$xml_packet-&gt;addChild(&#039;apptoken&#039;,$this-&gt;app_token);

seemed to fix the problem.</description>
		<content:encoded><![CDATA[<p>It seems like maybe Quickbase has updated their API and this wrapper is out of date?  For instance, I tried doing a simple $quickbase-&gt;get_schema and got an error 24 (&#8220;no app token&#8221;).  If you go to the docs page you link to, they point you to new docs.  Those docs say you must include an app token AND ticket on most API calls.</p>
<p>Changing line 884 to:<br />
$url_string = $this-&gt;qb_ssl . $this-&gt;db_id. &#8220;?act=API_GetSchema&amp;ticket=&#8221;. $this-&gt;ticket . &#8220;&amp;apptoken=&#8221; . $this-&gt;app_token;</p>
<p>And also adding this line to the XML version of the call:<br />
$xml_packet-&gt;addChild(&#8216;apptoken&#8217;,$this-&gt;app_token);</p>
<p>seemed to fix the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-78</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 31 Mar 2010 17:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-78</guid>
		<description>Hi Joshua,

Thanks for this! I was able to create a small front-end web form for QuickBase data entry using the concepts above. I just didn&#039;t get how to use the PHP wrapper until I saw your examples. I was also able to satisfy those people in our group who said &quot;the form is so ugly - I can&#039;t stand it&quot; :)

Thanks again!
Tim</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>Thanks for this! I was able to create a small front-end web form for QuickBase data entry using the concepts above. I just didn&#8217;t get how to use the PHP wrapper until I saw your examples. I was also able to satisfy those people in our group who said &#8220;the form is so ugly &#8211; I can&#8217;t stand it&#8221; <img src='http://joshuamcginnis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks again!<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Strahan</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-77</link>
		<dc:creator>Jennifer Strahan</dc:creator>
		<pubDate>Mon, 08 Mar 2010 18:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-77</guid>
		<description>Hi,

I have an application where I parse the Quickbase results and display them on a search results page.   In some cases the quickbase query returns so many records that I&#039;m getting a memory error in PHP.  I&#039;d like to set up the results page so that I display a limited number of results and include links at the bottom so user can click to load the next set.  I read about options skp-n and num-n but I haven&#039;t had any luck figuring out how to specify those options in the do_query function.  I tried the following with no luck:
 $results = $quickbase-&gt;do_query($queries, &#039;&#039;, &#039;&#039;, &#039;6.9.11.13.14.20.31.33.34.81&#039;, &#039;&#039;, &#039;&#039;,&#039;num-500&#039;);

Any suggestions on how I can add the options?

Thanks,
Jennifer</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have an application where I parse the Quickbase results and display them on a search results page.   In some cases the quickbase query returns so many records that I&#8217;m getting a memory error in PHP.  I&#8217;d like to set up the results page so that I display a limited number of results and include links at the bottom so user can click to load the next set.  I read about options skp-n and num-n but I haven&#8217;t had any luck figuring out how to specify those options in the do_query function.  I tried the following with no luck:<br />
 $results = $quickbase-&gt;do_query($queries, &#8221;, &#8221;, &#8217;6.9.11.13.14.20.31.33.34.81&#8242;, &#8221;, &#8221;,&#8217;num-500&#8242;);</p>
<p>Any suggestions on how I can add the options?</p>
<p>Thanks,<br />
Jennifer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rico</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-76</link>
		<dc:creator>Rico</dc:creator>
		<pubDate>Sun, 07 Mar 2010 02:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-76</guid>
		<description>Hi Joshua,

Good work on this API.

Do you have a sample code using the public function add_record but with uploads? (i am using $usexml = true;)
What kind of variable is $upload?
How do upload the file?

$response = $qb-&gt;add_record ($fields, $uploads);

~Rico</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>Good work on this API.</p>
<p>Do you have a sample code using the public function add_record but with uploads? (i am using $usexml = true;)<br />
What kind of variable is $upload?<br />
How do upload the file?</p>
<p>$response = $qb-&gt;add_record ($fields, $uploads);</p>
<p>~Rico</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-75</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Mon, 01 Mar 2010 21:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-75</guid>
		<description>Unfortunately, no - you cannot update a users password via the api.</description>
		<content:encoded><![CDATA[<p>Unfortunately, no &#8211; you cannot update a users password via the api.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-74</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Mon, 01 Mar 2010 20:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-74</guid>
		<description>Hello,

I just want to know if there is a possibility to update the password in QuickBase via API ?

Thanks for your answers.

Nicolas</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I just want to know if there is a possibility to update the password in QuickBase via API ?</p>
<p>Thanks for your answers.</p>
<p>Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Len</title>
		<link>http://joshuamcginnis.com/2009/04/23/quickbase-php-api-examples/#comment-73</link>
		<dc:creator>Len</dc:creator>
		<pubDate>Thu, 25 Feb 2010 16:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuamcginnis.com/?p=1228#comment-73</guid>
		<description>Josh,

I have been using the QB Perl SDK for some time, but now must venture down the PHP path.  The below is returning an invalid request, and I am not sure why.  My test is to return all the records from a table.  It appears that authentication is succeeding, and that the token is behaving correctly.  What am I missing?  Thanks much!

$quickbase = new QuickBase(&#039;$username&#039;, &#039;$password&#039;, true, &#039;$dbid&#039;, &#039;$QBToken&#039;);
$queries = array(
                        array(
                                &#039;fid&#039;   =&gt; &#039;0&#039;,
                                &#039;ev&#039;    =&gt; &#039;ct&#039;,
                                &#039;cri&#039;   =&gt; &#039;&#039;)
                         );
$results = $quickbase-&gt;do_query($queries, &#039;&#039;, &#039;&#039;, &#039;&#039;);

-Len</description>
		<content:encoded><![CDATA[<p>Josh,</p>
<p>I have been using the QB Perl SDK for some time, but now must venture down the PHP path.  The below is returning an invalid request, and I am not sure why.  My test is to return all the records from a table.  It appears that authentication is succeeding, and that the token is behaving correctly.  What am I missing?  Thanks much!</p>
<p>$quickbase = new QuickBase(&#8216;$username&#8217;, &#8216;$password&#8217;, true, &#8216;$dbid&#8217;, &#8216;$QBToken&#8217;);<br />
$queries = array(<br />
                        array(<br />
                                &#8216;fid&#8217;   =&gt; &#8217;0&#8242;,<br />
                                &#8216;ev&#8217;    =&gt; &#8216;ct&#8217;,<br />
                                &#8216;cri&#8217;   =&gt; &#8221;)<br />
                         );<br />
$results = $quickbase-&gt;do_query($queries, &#8221;, &#8221;, &#8221;);</p>
<p>-Len</p>
]]></content:encoded>
	</item>
</channel>
</rss>

