[FX.php List] Problems with linkNext/linkPrevious

Kevin Futter kfutter at sbc.melb.catholic.edu.au
Mon Sep 27 20:31:17 MDT 2004


Thanks Chris, it's working now - great service! Thanks too for providing
such a great tool, which I'll be relying on heavily in the coming months as
we migrate from CDML.

Cheers,
Kevin 

On 28/9/04 11:53 AM, "Chris Hansen" <chris at iViking.org> wrote:

> Kevin,
> 
> What linkNext and linkPrevious do is add a skip parameter to your
> existing search (in your case, 'skip=50').  This means however that you
> have to have some code on your page which ensures that the skip
> parameter is read in.  For example:
> 
> if (isset($_GET['skip']) && $_GET['skip'] > 0) {
>      $myFXInstance->FMSkipRecords($_GET['skip']);
> }
> 
> HTH
> 
> --Chris Hansen
>    creator of FX.php
>    "The best way from FileMaker to the Web."
>    www.iViking.org
> 
> On Sep 27, 2004, at 6:15 PM, Kevin Futter wrote:
> 
>> Hi everyone,
>> 
>> I'm relatively new to both FX.php and PHP itself, so forgive me if I
>> sound
>> ignorant of the obvious.
>> 
>> I'm having problems getting linkNext and linkPrevious to work as
>> advertised,
>> on 2 different systems, platforms and databases (I tried it both at
>> work and
>> at home). I'll describe the work scenario.
>> 
>> The code I'm using is this:
>> 
>> <?php
>> echo "<a href=\"" . $ReturnedData['linkNext'] . "\">Next</a>";
>> ?>
>> 
>> But clicking the 'Next' link just reloads the page with the same data.
>> After
>> running print_r($ReturnedData), the output I get for linkNext seems
>> incorrect:
>> 
>> [linkNext] => /about/staff/staff.php?skip=50&
>> 
>> I'm convinced I'm doing something wrong somewhere, as the
>> FXExamples.php
>> file works flawlessly.
>> 
>> Can anyone explain or guess at what I might be doing wrong?
>> 
>> Cheers,
>> Kevin Futter
>> 
>> 
>> 
>> _______________________________________________
>> 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