Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

previous/next navigation

Featured Replies

  • Newbies

Hi im new to filemaker.PHP can somebody give me an idea on how to do page navigation, i want to display 1 item per page then if next is click it will display the next item. Hope somebody can give me an idea about this....

this is the function that i used but its not totally working but maybe this will help....

function getStatusLinks($ur, $rs, $skp, $max) {

$links = array (

'first' => 'First',

'prev' => 'Prev',

'records' => array (

'rangestart' => 0,

'rangeend' => 0,

'foundcount' => 0

),

'next' => 'Next',

'last' => 'Last'

);

$fetchcount = $rs->getFetchCount();

$foundcount = $rs->getFoundSetCount();

$total = $rs->getTableRecordCount();

if ($total == 0 || $fetchcount == 0) {

return $links;

} else {

if ($fetchcount > 0) {

if ($skp > 0) {

$links['first'] = 'First';

if ($skp > $max) {

$prevskip = $skp - $max;

$links['prev'] = 'Prev';

}

}

if ($foundcount - $skp > $max) {

$nextskip = $skp + $max;

$links['next'] = 'Next';

$lastskip = $foundcount - $max;

$links['last'] = 'Last';

}

$links['records']['rangestart'] = max($skp, 1);

$links['records']['rangeend'] = min($foundcount + $skp, $fetchcount + $skp);

$links['records']['foundcount'] = $foundcount;

}

}

return $links;

}

Thanks in advance

john

  • Author
  • Newbies

:) nobody know's this question..... well i already figure out the problem thanks anyways to all who viewed this post.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.