[FX.php List] Browsing a set of found records

Jonathan Schwartz jonathan at eschwartz.com
Sun Aug 20 00:16:59 MDT 2006


This next enhancement has been on my wish list for a long time....

After performing a search, I would like to allow users to browse the 
resulting records, one by one.  To me, this is much more efficient 
then: search/view list/display detail/return to list/view next.

I know that this means saving the resulting set in an array and then 
walking the array.  I just don't know how.

I imagine it must look a lot like the standard for each code, along 
with explode.  From the current script which lists the found set:

  php foreach($searchResult['data'] as $key => $value) {

		echo "<td><a href=\"detail.php?recid=";
   	  	$recordDetails=explode('.',$key);
		$currentRecord=$recordDetails[0];
		echo $currentRecord."\">".$value['myfield'][0];
   	 	echo "</a></td>";

In addition to echoing to screen, I'm guessing that I need to create 
and populate an array.

Or.....is this just a variation on PREV NEXT links, where the 
groupsize is set to 1?

Anyone want to steer me in the right direction?

Thanks

Jonathan
-- 

Jonathan Schwartz
FileMaker 8 Certified  Developer
Associate Member, FileMaker Solutions Alliance
Schwartz & Company
jonathan at eschwartz.com
http://www.eschwartz.com
http://www.exit445.com



More information about the FX.php_List mailing list