[FX.php List] Displaying portal information

Chris Hansen chris at iViking.org
Wed Jan 26 17:42:13 MST 2005


Jason,

Keep your foreach() for that first field.  Then, use the key from that 
field to display the data from the others.  For example:

foreach ($currentRecord['fieldName'] as $key => $value) {
     echo("<tr>\n");
     echo("<td>{$value}</td>\n");
     echo("<td>{$currentRecord['fieldTwo'][$key]}</td>\n");
     echo("</tr>\n");
}

That's really basic, but hopefully it conveys the idea.  Best,

--Chris Hansen
   creator of FX.php
   "The best way from FileMaker to the Web."
   www.iViking.org

On Jan 26, 2005, at 4:25 PM, Jason H.Awbrey wrote:

> Hello all,
>
> Can someone give me some information on displaying portal information 
> in PHP? I have been successful using foreach () to parse out the array 
> of ONE field in a portal but I am trying to display multiple fields. I 
> need them to line up in a table. Anyone have any suggestions (other 
> than querying the secondary table)?
>
> Many thanks,
> Jason
>
> On Oct 1, 2004, at 2:57 PM, Jason H.Awbrey wrote:
>
>> Hello All,
>>
>> I am currently trying to parse out a field that holds 
>> return-delimited values into an array. I was trying to use explode() 
>> but I can't figure out what the character is that FileMaker outputs 
>> as the return to use as the string separator. Does anyone on the list 
>> know what character FM is using for the return character? I tried 
>> copying the output and pasting it into BBEdit and it looks like ASCII 
>> code 13 (\r) but that doesn't seem to be working. Any help would be 
>> appreciated.
>>
>> Cheers,
>> Jason H. Awbrey
>> StravinSOFT, Incorporated
>> http://www.stravinsoft.com
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
> _______________________________________________
> 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