-
Sql request problem
Hi
until now I used php 5.6 and for sql request i had created a dynamic syntax like this:function getInfo($table,$where,$field,$path="",$single="yes"){ $mySforceConnection=connectTOsf($path); $res=array(); $tab_field=array(); $contact=""; $x=0;$z=0; try{ $query = "SELECT ".$field." from ".$table." ".$where; $response = $mySforceConnection->query($query); $queryResult = new QueryResult($response); $tab_field=explode(",",$field); for ($queryResult->rewind(); $queryResult->pointer < $queryResult->size; $queryResult->next()) { $record=$queryResult->current(); for($i=0;$i<count($tab_field);$i++) { if($tab_field[$i]=="Id") $value=$queryResult->current()->Id; else $value=$record->fields->$tab_field[$i]; ..... suite du traitement } } .........It worked very well, but now with php7 the $value (not ID whose is static) are empty, and the values contain in $tab_field[$i] are correct.
Is somebody can help me please?
Thanks a lot in advance
Log In to reply.
Popular Salesforce Blogs
The 8 Elements Your Training and User Adoption Plan Must Have | Salesforce Tips
Your company just made a large investment and spent a whole lot of time implementing Salesforce into your organization, and now the time has come…
How to Get Current Record Id in Lightning Web Component | Salesforce Developer Guide
Getting record in Lightning Aura Component is quite easy, we use force:hasRecordId and get the result in controller by using, getRecordId:function(component,event, helper){ var currentRecordId…
Switching from MS Dynamics to Salesforce | Learn Here
Introduction Talking about a CRM both MS Dynamics and Salesforce are great platforms to work on. But with the advancement and upgradation in technological development,…
Popular Salesforce Videos
Salesforce Winter '23 Release Highlights - Video
Cosy up by the fireplace with a nice blanket and a cup of hot cocoa; Salesforce's Winter '23 update is as cool as ice! With…
Use Case Hierarchy to Link Cases in Salesforce
Want to link your cases, so you and your team have a complete view of what’s going on with a customer? Do you want to…
Salesforce Introduced Next Generation Of Tableau Cloud
Salesforce added a new member to its fleet of the cloud for customers: Salesforce Tableau Cloud. The Tableau Cloud developed will empower the customers to…
Popular Salesforce Infographics
The Ultimate Marketing Automation Glossary
Sometimes, it sounds like marketers are speaking another language—especially when using terms associated with specific tools and platforms. It gets even more complicated when certain…
See Why Salesforce Goes All In on Pro Bono
Salesforce Pro Bono Program aims to match nonprofits and higher education institutions with Salesforce professionals to maximize their Salesforce implementation and transform their organization. Scroll…
Benefits of Integrating Tableau with Salesforce
Tableau Integration with Salesforce helps businesses gain a multitude of advantages. The true power of Salesforce CRM is felt only when business users can analyze…