You need to sign in to do that
Don't have an account?
M.
iterating through php array
hello everyone... I already can make queries to salesforce... but now I
can't iterate on the array... I'm still very noob to php....
this is the query I'm using...
$result = $sforce->query(array("queryString" => "Select SolutionNote from Solution where Solution.Status='Revisto'"));
print_r($result);
the "print_r" prints the whole array...
how can I iterate through all the $result values...
can something like the following be done?
for(i=0; i<10; i++)
{
print_r($result[i]);
}
Thank you.
M.
this is the query I'm using...
$result = $sforce->query(array("queryString" => "Select SolutionNote from Solution where Solution.Status='Revisto'"));
print_r($result);
the "print_r" prints the whole array...
how can I iterate through all the $result values...
can something like the following be done?
for(i=0; i<10; i++)
{
print_r($result[i]);
}
Thank you.
M.
Try something like this:
if ($result->size > 0) {
foreach ($result->records as $record) {
$record = new SObject($record);
print_r ($record);
}
}
else {
echo "No results.";
}