function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nhannhan 

Fatal error: Class 'QueryResult' not found

what does this error means?
 
Fatal error: Class 'QueryResult' not found in....
 
hers my code... thanks!
 
$query = 'Select Id, FirstName from contact';
  $response = $mySforceConnection->query(($query));
  $queryResult = new QueryResult($response);
  foreach ($response->records as $record) {
    $sobject = new SObject($record);
    echo $sobject->fields->ContactId;
    echo "\r\n";
  }
} catch (Exception $e) {
  echo $e->faultstring;
}
Best Answer chosen by Admin (Salesforce Developers) 
nhannhan
already found the solution... Thanks!

All Answers

nhannhan
already found the solution... Thanks!
This was selected as the best answer
tammyCMCtammyCMC

hi  since you found the solution it would be great if you posted it!!

thanks

tam