-
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
3 Tactics to Optimize Your Salesforce Implementation
Salesforce implementation requires substantial planning and investment. While most businesses invest heavily during the implementation phase, only a significant proportion of them reap above satisfactory…
What Is Salesforce Workbench - The Complete Developer Guide
What is Salesforce Workbench? Salesforce Workbench is a tool that brings together a number of advanced features and capabilities into one place. A lot of…
Custom Settings in Salesforce - All You Need to Know
Custom settings in Salesforce are like custom articles and empower application engineers to make custom arrangements of information, just as make and partner custom information…
Popular Salesforce Videos
Discover Lightning Web Components | Salesforce Tutorial
Watch this Salesforce tutorial. After completing this unit, you’ll be able to: Explain the Lightning Web Components programming model. List the benefits of using Lightning…
Pass Record Id into Flow from Record | Salesforce Tutorial
Passing record ids is a technique that every flow master needs to know to use flows to their full potential. In this video, we go…
How To Use Javascript Editor In Formstack Part 2 - Learn Salesforce Series By Algoworks
Learn how to integrate Javascript editor in Formstack in this Salesforce tutorial brought to you by Algoworks. Did you miss the complete tutorial? To watch…
Popular Salesforce Infographics
CRM Administrator - Better CRM Adoption With Less Resistance | Salesforce
A CRM is only as strong as its data. It can improve efficiency and personalize the customer experience if employees are comfortable using it. By…
Automation Tools In Salesforce
Automation tools in Salesforce can eliminate monotonous tasks, freeing up an admin’s time to do more profound things. These tools include Workflow Rules, Process Builder,…
Enhance Customer Experience With Salesforce
Salesforce Makes Personalized, Consistent Digital Customer Experience a Reality. Salesforce, widely recognized as the leader in business CRM, gives organizations the tools they need to…