title: Returning data from SQL query into an array
body: <p>I have the following code: </p>
  
  <pre><code>$aResult = $db-&gt;exec_sql($sql);
  
      //dlog2("matt", __line__, $aResult);
          print_r($aResult);
  
  
          $params = array(
                          'store_id' =&gt; $aResult['iStoreID'],
                          'user_id' =&gt; $aResult['iUserID'],
                          'store_name' =&gt; $aResult['cStoreName'],
                          'store_url' =&gt; $aResult['cStoreURL'],
                          'rid' =&gt; $aResult['cRID'],
                          'affiliate_id' =&gt; $aResult['iAffiliateID'],
                          'team_id' =&gt; $aResult['iTeamID'],
                          'bizOP' =&gt; $aResult['cDefaultBizOpp'],
                          'showBizOPp' =&gt; $aResult['iShowBizOppDropdown'],
                          'boPosting' =&gt; $aResult['iEnableBOPosting'],
                          'brandinglevel' =&gt; $aResult['iBrandingLevel']
          );
  
         // dlog2("matt", __line__, $params);
          print_r($params);
  </code></pre>
  
  <p>$aResult is an array where the data is organized by column heading.  However when I try to move the data to $params it returns an empty array.  Any advice? </p>
  
  <p>The idea is to going to set up a cron that will do an external post on $params </p>