-
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
5 Powerful JavaScript UI Tools for Efficient Salesforce Components Improvement
Salesforce is one of the most popular CRM platforms currently available at the market. The company offers its clients a wide range of solutions able…
The Rising Demand for Salesforce Experts
Salesforce is the world’s most popular CRM platform, with at least a 20 percent market share, and there are more jobs than ever at companies…
Why Invest in Salesforce Implementation Solutions?
Since sales are a company's lifeblood, businesses make every effort to increase them. Thus, one of the major tactics for effective sales management is measuring…
Popular Salesforce Videos
Securing Salesforce Access with Multi-Factor Authentication
It's important to implement strong security measures to protect your business and customers. One of the simplest, most effective ways to help prevent unauthorized account…
7 Lightning Flow Features in Salesforce Winter '20 Release
Lightning Flow Builder is an automation tool within salesforce.com CRM. It's declarative, clicks not code, a tool that can perform both fully automated and custom…
Is Salesforce A Good Career Path?
Join this useful group for Salesforce job & career info: https://tinyurl.com/TelegramIntelogik Contact us for any Salesforce career guidance. Watch this video and learn. do let…
Popular Salesforce Infographics
10 Must Know Salesforce Stats
It’s no secret that Salesforce have been named number #1 most innovative company in the world 3 times over. We have summed up some of the key…
How to Choose the Right CRM for Your Business?
There are many CRM solutions for companies to choose from, and wading through the wide range of options can seem like a daunting task. Choosing…
How to Hire Hire Salesforce Cloud Consultants For Business Growth
Need Trusted Salesforce Cloud Experts For Business Transformation? Hire certified cloud experts from Concretio to unleash the power of Salesforce cloud & leverage its potential…