So far, this query works fine SELECT * FROM Contact
, which retrieves all contacts from the Contact object, but now I'm trying to fetch data from Education__c, so I tried SELECT * FROM Education__c
. This is what I have:
$query = "SELECT * FROM Education__c";
$response = $mySforceConnection->query($query);
foreach($response->records as $record){
echo ($record->fields->School_Name__c);
But this doesn't work. So I guess I'm doing something wrong with the response->records but I don't know.
SOQL doesn't like wildcards SOQL. Try specifying the fields you want to retrieve. Also, does it give you any errors?