Using the Salesforce PHP Toolkit how can we safely execute queries? It doesn't seem like parameterized queries are supported. The only function I've seen is query()
and that only takes in an SOQL with no additional parameters. Is there another option or do I need to do my own escaping function?
Here's my actual usage:
$query = "select Id
from Contact
where email = '{$data['email']}'";
$response = $SforceConnection->query($query);
and the $data['email']
is John.O'[email protected]
.