[FX.php List] Re: FX.php_List Digest, Vol 26, Issue 7
Lindal, Mark
mlindal at pfc.forestry.ca
Wed Sep 6 11:24:05 MDT 2006
Jonathan et al,
A correction to your finding recID from the data returned in FMNew()
foreach($searchResult['data'] as $key => $value);
$recordDetails=explode('.',$key);
$currentRecord=$recordDetails[0];
Take the { } out and end your foreach with a ';'
Otherwise you are telling it to loop through all the data.
In this case only one record is found - so it will only loop once and there
are cases when you want the recid for a series of record.
But in the case of only one record - this is better coding.
------------------------------
Mark Lindal
Publications Technician / Technicien, publications
Canadian Forest Service / Service canadien des forêts
Natural Resources Canada / Ressources naturelles Canada
Government of Canada / Gouvernement du Canada
506 West Burnside Road / 506, chemin Burnside ouest
Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5
mlindal at pfc.forestry.ca
250-363-0603
More information about the FX.php_List
mailing list