Jump to content

This topic is 7085 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

This is a no brainer in PHP and MySQL but I'm stumped in FMP.

I am testing the FMP8 demo (as a previous FMP5 user) and looking at running a FMP8 DB mainly via the web instant publisher.

I have a table that could have 1000's of records so I only want the user to see say 50 records at a time i.e. page 1 of 200 with a 'Next' and 'Previous' page feature.

Something tells me this is impossible with FMP and the IWP. I was going to build this web app with PHP and MySQL but I started to lean back to FMP but this seems to be a show stopper.

Posted

quite simple in PHP

With FX forge (http://fmwebschool.com)

You enter in your search criteria, how many records to display per page, and 'fx forge' produces clean code with Next / Previous links and code for skip value etc.

Here is the sample code that is needed


if(isset($_POST['skip'])){ $skipSize=$_POST['skip'];}else{$skipSize='0';}

 if(isset($_POST['type'])){ $type=$_POST['type'];}else{$type='';}





you also need:


$search->FMSkipRecords($skipSize);





and finally in your html:









	







	





The rest is easy with FX Forge...

This topic is 7085 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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