Hi there
i'm trying to populate some fields in a web form with salesforce data
i get this error
Fatal error: Class 'QueryResult' not found in C:\scripts\index.php on line 12
from this code:
require_once("c:/php/sforce/soapclient/SforceEnterpriseClient.php");
require_once ('c:/php/sforce/soapclient/SforceHeaderOptions.php');
require_once ('c:/php/sforce/userAuth.php');
$conn= new SforceEnterpriseClient();
$conn->createconnection("enterprise.wsdl.xml");
$mylogin=$conn->login($myusername,$mypassword);
$query="select firstname,lastname,email from contact where username__c='abcdefgh'";
$response=$conn->query($query);
$queryresult = new QueryResult($response);
foreach ($queryresult->records as $result) {
$Name= $result->fields->firstname;
print_r("
name is ");
print_r ($Name);
}
thanks for any help
tammy


LinkBack URL
About LinkBacks
Reply With Quote



Bookmarks