-
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
How an Easy-to-Use CRM can Transform your Business?
Even if you've never used a CRM, you've likely heard the term mentioned in business circles. Many companies, including your competitors, leverage CRM tools to…
Integrating and Automating B2B Sales Workflows with Custom Salesforce Integrations
When you think about the complex world of B2B sales, it’s clear that there are a lot of moving parts. Sales teams juggle multiple tasks—from…
Importance of performance in Salesforce development
While you can develop and publish your .NET applications using the Microsoft Azure cloud platform - the thing is, these applications would still be being…
Popular Salesforce Videos
Manage Packages & Post Installation Script | Salesforce Managed Packages
This video will give you a brief overview of Managed Packages and Unmanaged Packages in Salesforce. You will get a quick glance at how to…
What are Apps in Salesforce?
Apps in Salesforce are Service, Marketing, Content, Salesforce Chatter, Service Console, Salesforce CMS, Test, Sales, Salesforce Scheduler Setup, Community, Sales Console, Lightning Usage App, Bolt…
Is Salesforce Career Recession Proof?
Is Salesforce Career Recession Proof? Watch this video and get all the knowledge about the Salesforce industry. Join this useful group for Salesforce job &…
Popular Salesforce Infographics
How to Choose the Right Salesforce Partner
Choosing the right partner is a key factor that could make or break your project’s success. Salesforce is a mighty CRM platform, and that’s why…
Know 5 Reasons to Use Salesforce for Your Business
Salesforce is a customer relationship management (CRM) platform that can be used by businesses of all sizes to manage and analyze customer interactions and data.…
Business Transformation With Salesforce AppExchange
Salesforce AppExchange acts as a comprehensive resource for Salesforce users, offering a vast collection of solutions tailored to various departments, industries, and business use cases.…