-
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
What is Salesforce Net Zero Cloud?
Barely a day goes by without there being something in the news about climate change, sustainability or carbon footprints. It is a major focus for…
FlexDeploy Loves Salesforce: DevOps for Salesforce
FlexDeploy is an enterprise DevOps platform with fully integrated support for Salesforce apps, metadata customizations, integrations and more. This is the first article in a blog…
Popular Salesforce Videos
Salesforce Consent Management
Consent Management: Track Customer Consent and Honor Opt-Out Requests. Track your customers' approval for how your company interacts with them. To help you assess your…
Salesforce Careers - Why Consider A Career In Salesforce
This Salesforce Training Video will help you understand about Salesforce, Salesforce market situation, Salesforce job trends, Salesforce career options and how Salesforce is a safe…
Forecast Accurately With Collaborative Forecasts in Salesforce Lightning Experience
Learn how to use Collaborative Forecasts to predict your team’s sales and take advantage of cumulative rollups, forecast adjustments, territory forecasts, forecast sharing, and quota…
Popular Salesforce Infographics
How to Create Campaign in Salesforce for Sales Departments: 5 Best Practices
Salesforce Sales Cloud is a powerful platform with several facilities for maintaining and improving the sales function. One of the dominant features offered by Salesforce…
How to Use Psychology to Target Your Buyer?
Ever wanted to get into the minds of your customers and figure out how they think? Ever wanted to know the best methods to convince…
5 Security Habits That Help Your Salesforce Admin Career
As Salesforce Admins, you drive results and deliver business value every day. You automate processes and make them more efficient. You can also learn more…