[FX.php List] Related Records

Dale Bengston dbengston at preservationstudio.com
Mon Mar 20 09:17:16 MST 2006


Hi Tom,

Congratulations for stepping out of the shadows! Welcome.

Related fields (assuming you have them on the layout specified in  
your FX.php query) are referred to like this:

$return['relationship::fieldname'], and you use the sub-array for  
multiple related records.

If you only have one related value, then it's referenced as:
	$return['relationship::fieldname'][0]

If you have many records, they are referenced as:
	$return['relationship::fieldname'][0]
	$return['relationship::fieldname'][1]
	$return['relationship::fieldname'][2]
	[...]

Hope this helps,
Dale

On Mar 20, 2006, at 10:08 AM, Tom Sepper wrote:

> Hello everyone,
>
> I've been lurking on this list for about six months now attempting  
> to grasp fx.php's functions and such.  Now that I've begun my  
> development, I have what is probably a very basic question..
>
> What is the best way to query for related records?  I know how I  
> want to display the records similar to a FileMaker portal, but  
> getting the data seems to be getting me!
>
> Thanks,
> Tom
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060320/1c2e51f9/attachment-0001.html


More information about the FX.php_List mailing list