[FX.php List] Displaying related records

Bob Patin/Longterm Solutions bob at patin.com
Mon Jul 21 20:24:31 MDT 2008


Here's how I'd write it:

foreach($searchResult['data'] as $key => $value) {
	echo  $value['off_FEATURE::Headline'][0];
}

You don't need that internal FOREACH.

Best,

Bob





On Jul 21, 2008, at 9:11 PM, Jonathan Schwartz wrote:

> I'm drawing a blank on how to display related records after finding  
> the parent record. The portal is on the parent record page.
>
> Here's what I have...and it's not working:
>
> foreach($searchResult['data'] as $key => $value) {
> 	foreach($value as $key => $value1) {
>  	   echo  $value1['off_FEATURE::Headline'][0];
>   	  } }
>
> Thanks for the help.
>
> J
> -- 
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-370-5011
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list