-
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 Questions to Help Decide If a Salesforce Certification Is for You
Salesforce is used in nearly every industry and countless companies today, and its reach continues to expand. Salesforce dominates because the Customer Relationship Management (CRM)…
Integration of Salesforce with Google Calendar using APEX
Salesforce Integration with Google Calendar REST API can also be done by using Apex Code. The following steps show how to integrate Salesforce with Google…
7 Signs Your Company Needs a Salesforce Consulting Partner
1. Struggling with Salesforce Adoption One of the most common challenges businesses face is low adoption rates of Salesforce among their teams. Despite its powerful…
Popular Salesforce Videos
Practice Questions and Test for Salesforce Administrator ADM 201 Certification Exam | 2021
In this video, Shrey provides a practice test for the candidates who are preparing for the Salesforce Administrator exam. This test boosts your confidence and…
Process Builder - A Tool every Salesforce Developer must know
Salesforce Process Builder - A Tool every Salesforce developer must know. Learn how to master Process builder Salesforce to automate your business processes. In this…
What is Salesforce Permission Sets? Explain in Details
Permission Sets basically deals with improvising the additional permission from the existing profile. Watch this video to learn more about Salesforce Permission Sets. If you…
Popular Salesforce Infographics
Salesforce Acquisitions
Salesforce acquisitions have played an increasingly important role in the CRM vendor’s growth into emerging markets, particularly in the fields of AI and eCommerce. Salesforce,…
Top 10 Salesforce Consulting Companies in India
Looking to hire a best Salesforce consulting company in India for your business? Here is a without-favour list of the top 10 Salesforce consulting companies…
CUSTOMER SERVICE TIPS: 4 SECRETS TO OFFERING EXCEPTIONAL CUSTOMER SERVICE
When it comes to customer service, our friends at Salesforce have a few tips and tricks up their sleeve. We were thrilled to help them illustrate four…