[FX.php List] LinkNext/LinkPrevious and FMFind

Milos Vukotic milos at mcservices.com
Fri Oct 29 08:12:57 MDT 2004


If you are looking for bugs (either from You, ether from FX.php, either  
from FM server), first you should add as a first line of your script 
before any include or require_once (after <?);

define('DEBUG',1);

Then after you run the script, you can test that URL in the browser to 
see what you'll get. If that result is correct, but you are getting 
something different, than it is maybe problem up to FX.php, in other 
case: Bug is up to you, and you should send us that URL to see what is 
in it., PHP code you are using, and eventually browser output when you 
manually enter that URL.

Have a fun,
-- 
Milos Vukotic
Software Engineer
MC Services
http://www.mcservices.com


Kim Hawksworth wrote:

>Hi Dale,  The third argument number is 25.  I'm trying to display the
>found set in groups of 25.
> 
> 
>  
>
>>>>dbengston at preservationstudio.com 10/28/04 5:33 pm >>> 
>>>>        
>>>>
>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 
>>
>>    
>>
> 
> 
>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