[FX.php List] LinkNext/LinkPrevious and FMFind

Dale Bengston dbengston at preservationstudio.com
Thu Oct 28 15:33:02 MDT 2004


Hi Kim,

What value is entered for the third argument in SetDBData? (The third 
argument is the number of records to display.)

$fx_query->SetDBData ('mydb', 'web', '->what_is_here<-');

Dale

Dale Bengston | Streamline Studio, LLC | dbengston at streamline-studio.com
Associate Member, FileMaker Solutions Alliance

On Oct 28, 2004, at 1:35 PM, Kim Hawksworth wrote:

> I sent a message to the list back on the 19th of this month regarding a
> problem with LinkNext/LinkPrevious from the FMFind() function.  It
> didn't get any responses, so I thought I'd try again...
>
> As previously stated, I can get linkNext and LinkPrevious to work just
> fine from the FMFindAll(); function,  but from an FMFind(); function 
> the
> initial set of records returned has one more record than what was
> specified by the skip number (in others words if the skip # is set to
> 25, it returns 26 records).  Clicking the LinkNext button finds no more
> matching records in the database instead of the next set of 25.
> LinkPrevious also gives the same message instead of displaying the
> previous 25 records. I intiallize the skip number with the following
> code:
>
> if (isset($_GET['skip'])) {
>     $currentSkip = $_GET['skip'];
> } else {
>     $currentSkip = 0;
> }
>
> $resident_search->FMSkipRecords($currentSkip);
>
> The linkNext button uses the following code:
>
> <?php
> if (strlen($search_results['linkNext']) <1) {
> echo "";
> 		
> }else{
> 		
> ?>
> 		
> <a href="<?php echo $search_results['linkNext'] ?>"><b>Next
> Results</b></a> <img src="images/stpl_arr.gif" border="0"
> align="middle">
> 		
> <?php
> }
> ?>
>
> Like I said, this works fine with FMFindAll.  Is there something else I
> need to do to get this to work with the FMFind(); function?
>
> Thanks for your help.
>
> --Kim
>
>
>
>
>
> Kim David Hawksworth, R.Ph., Web Manager
> The Ohio State University Medical Center
> Department of Pharmacy
> _______________________________________________
> 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